Jaxer.Overrides.JSON : Object
Return to: Jaxer Framework index

An object that exposes native functions for constructing and parsing JSON data strings. A synonym for window.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, 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

Jaxer.Overrides.JSON.encode|Jaxer.Overrides.JSON.stringify|Jaxer.Serialization.fromJSONString

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

Jaxer.Overrides.JSON.decode|Jaxer.Overrides.JSON.parse|Jaxer.Serialization.toJSONString

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, 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

Jaxer.Overrides.JSON.encode|Jaxer.Overrides.JSON.stringify|Jaxer.Serialization.fromJSONString

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

Jaxer.Overrides.JSON.decode|Jaxer.Overrides.JSON.parse|Jaxer.Serialization.toJSONString

aptana_docs