Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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) }}

  • No labels