Class JS5JSON
java.lang.Object
org.fife.rsta.ac.js.ecma.api.ecma5.JS5JSON
Object JSON
- Since:
- Standard ECMA-262 5th. Edition
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JS5Objectparse(JS5String s, JS5Function reviver) function parse(s, reviver) parse a JSON-formatted string.static JS5Objectstringify(JS5Object o, JS5Function filter, JS5Object indent) function stringify(o, filter, indent) serialize an object, array or primitive value.
-
Constructor Details
-
JS5JSON
public JS5JSON()
-
-
Method Details
-
parse
function parse(s, reviver) parse a JSON-formatted string.- Parameters:
s- The string to be parsed.reviver- An optional argument function that can transform parsed values.- Since:
- Standard ECMA-262 5th. Edition
- See Also:
-
stringify
function stringify(o, filter, indent) serialize an object, array or primitive value.- Parameters:
o- The object, array or primitive value to convert to JSON string.filter- An optional function that can replace values before stringification.indent- An optional argument that specifies am indentation string or number of spaces to use for indentation.- Since:
- Standard ECMA-262 5th. Edition
- See Also:
-