public abstract class JS5JSON
extends java.lang.Object
| Constructor and Description |
|---|
JS5JSON() |
| Modifier and Type | Method and Description |
|---|---|
static JS5Object |
parse(JS5String s,
JS5Function reviver)
function parse(s, reviver) parse a JSON-formatted string.
|
static JS5Object |
stringify(JS5Object o,
JS5Function filter,
JS5Object indent)
function stringify(o, filter, indent) serialize an object, array or primitive value.
|
public static JS5Object parse(JS5String s, JS5Function reviver)
s - The string to be parsed.reviver - An optional argument function that can transform parsed values.JSONpublic static JS5Object stringify(JS5Object o, JS5Function filter, JS5Object indent)
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.JSON