Table Of Contents

aps/json

The function that parses a specified text file whose content complies with the JSON notation and loads the resulting JSON object.

Table of contents

Compatibility

All user panels - CP and UX1

Example

Use the newvps.json file containing the definition of a resource with default parameters to assign those parameters to a new object:

define([
   "dojo/_base/declare",
   "dojox/mvc/getStateful",
   "dojox/mvc/at",
   "aps/View",
   "aps/ResourceStore",
   "aps/json!./newvps.json"
],
function (declare, getStateful, at, View, Store, newVPS) {

     return declare(View, {
             init: function() {
                     this.vpsModel = getStateful({"data": newVPS});
         ...
      },
   ...
   });
});