dojo.fromJson
<script src="../../js/dojo.js"></script>
defined in dojo/_base/json.js
Parses a JSON string to return a JavaScript object.
Usage
function (/*String*/ json) (view source)
parameter | type | description |
---|---|---|
json | String | a string literal of a JSON item, for instance: `'{ "foo": [ "bar", 1, { "baz": "thud" } ] }'` |