Functiondojox.rpc.fromJson

evaluates the passed string-form of a JSON object. A JSON Schema object that can be used to advise the parsing of the JSON (defining ids, date properties, urls, etc) which may defined by setting dojox.currentSchema to the current schema you want to use for this evaluation json: a string literal of a JSON item, for instance: '{ "foo": [ "bar", 1, { "baz": "thud" } ] }'

Usage

function (/*String*/ str, /*Object?*/ schema)
parametertypedescription
strString 
schemaObjectOptional. A JSON Schema object that can be used to advise the parsing of the JSON (defining ids, date properties, urls, etc) // Currently this provides a means for context based id handling return: An object, the result of the evaluation