Class JS5JSON
- java.lang.Object
-
- org.fife.rsta.ac.js.ecma.api.ecma5.JS5JSON
-
public abstract class JS5JSON extends java.lang.ObjectObject JSON- Since:
- Standard ECMA-262 5th. Edition
-
-
Constructor Summary
Constructors Constructor Description JS5JSON()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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.
-
-
-
Method Detail
-
parse
public static JS5Object parse(JS5String s, JS5Function reviver)
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:
JSON
-
stringify
public static JS5Object stringify(JS5Object o, JS5Function filter, JS5Object indent)
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:
JSON
-
-