Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

I need to read JSON data from .json file and store in JS variable

I create two files in my Apigee proxy one file where named swagger.json and other one is read-swagger.js

In swagger.jso I have json data which I need to read through JS file and store in a variable.

Currently getting below error.

Error: Module name \"Swagger.json\" has not been loaded yet for context: _. Use require([])

Expectation -:

Get the swagger data in a JS variable.


Is it possible in APIGEE? Any suggestions?


0 2 402
2 REPLIES 2