Gadgets.json (v0.9)
NeedsExamples
gadgets.json
Provides operations for translating objects to and from JSON.
Methods
gadgets.json.parse
;<static> Object gadgets.json.parse(text)
Description
Parses a JSON string, producing a JavaScript value.
Example
gadgets.json.stringify
;<static> String gadgets.json.stringify(v)
Parameters
NameTypeDescription |
v |
Object |
The object to convert |
Returns
TypeDescription |
String |
The JSON equivalent |
Description
Converts a JavaScript value to a JSON string.
Example
; gadgets.json.stringify({a : "b"})
{{ JsApiAlphaList_(v0.9) }}