OpenLayers JavaScript Mapping Library |
OpenLayers. Format.JSONA parser to read/write JSON safely. Create a new instance with the OpenLayers.Format.JSON constructor. Inherits fromSummary
pretty{Boolean} Serialize with extra whitespace for structure. This is set by the write method. read
Deserialize a json string. Parameters
Returns{Object} An object, array, string, or number . write
Serialize an object into a JSON string. Parameters
Returns{String} The JSON string representation of the input value. |
Deserialize a json string.
read: function( json, filter )
Serialize an object into a JSON string.
write: function( value, pretty )
Output an indentation string depending on the indentation level.
writeIndent: function()
Output a string representing a newline if in pretty printing mode.
writeNewline: function()
Output a string representing a space if in pretty printing mode.
writeSpace: function()