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 Framework Jaxer Client Framework
1.0 no

Functions

Method Action Jaxer Server Framework Jaxer 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 Details 1.0 no

Parameters
String text The JSON string describing the value to be created

Returns
Object The 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 Details 1.0 no

Parameters
Object value The value whose JSON string representation is to be returned

Returns
String The 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 Details 1.0 no

Parameters
String text The JSON string describing the value to be created

Returns
Object The 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 Details 1.0 no

Parameters
Object value The value whose JSON string representation is to be returned

Returns
String The JSON string representation of the value

See Also

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

aptana_docs