Namespace: JSON

utilx. JSON

utilx.JSON
Source:

Methods

(static) parse(text, reviver) → {Object}

Parse a string as JSON, optionally transform the produced value and its properties, and return the value.
Parameters:
Name Type Description
text string
reviver function | Array
Source:
See:
Returns:
Type
Object

(static) stringify(value, replacer, space) → {string}

Return a JSON string corresponding to the specified value, optionally including only certain properties or replacing property values in a user-defined manner.
Parameters:
Name Type Description
value *
replacer function | Array
space number
Source:
See:
Returns:
Type
string