JSON : Object
Return to: Jaxer Framework index

An object that exposes native functions for constructing and parsing JSON data strings. A synonym for Jaxer.Overrides.JSON.

Platform Support

Jaxer Server FrameworkJaxer Client Framework
1.0no

Functions

MethodActionJaxer Server FrameworkJaxer Client Framework
static decode(String text) : Object
Returns the JavaScript value represented by the given JSON string. More options are likely to be available in the future. A synonym for Jaxer.Overrides.JSON.parse, Jaxer.Overrides.JSON.decode, and JSON.parse
Show Details1.0no

Parameters
StringtextThe JSON string describing the value to be created

Returns
ObjectThe value value represented by the JSON string

See Also

JSON.encode|JSON.stringify

static encode(Object value) : String
Returns a JSON string representation of its argument. More options are likely to be available in the future. A synonym for Jaxer.Overrides.JSON.stringify, JSON.encode, and JSON.stringify
Show Details1.0no

Parameters
ObjectvalueThe value whose JSON string representation is to be returned

Returns
StringThe JSON string representation of the value

See Also

JSON.decode|JSON.parse

static parse(String text) : Object
Returns the JavaScript value represented by the given JSON string. More options are likely to be available in the future. A synonym for Jaxer.Overrides.JSON.decode, Jaxer.Overrides.JSON.parse, and JSON.decode
Show Details1.0no

Parameters
StringtextThe JSON string describing the value to be created

Returns
ObjectThe value value represented by the JSON string

See Also

JSON.encode|JSON.stringify

static stringify(Object value) : String
Returns a JSON string representation of its argument. More options are likely to be available in the future. A synonym for Jaxer.Overrides.JSON.encode, JSON.encode, and JSON.stringify
Show Details1.0no

Parameters
ObjectvalueThe value whose JSON string representation is to be returned

Returns
StringThe JSON string representation of the value

See Also

JSON.decode|JSON.parse

aptana_docs