enyo.json
enyo.json contains methods for handling JSON-formatted text.
Methods
enyo.json.parse(inJson)
Returns a JavaScript object for a given JSON string, using native stringify routine if it's available.
inJson is the JSON string to be converted to a JavaScript object.
enyo.json.stringify(inValue, inReplacer, inSpace)
Returns a JSON string for a given object, using native stringify routine if it's available.
-
inValueis the object to be converted to JSON. -
inReplaceris an optional value inclusion array or replacement function. -
inSpaceis an optional number or string to use for pretty-printing whitespace.