Class: JsonEx

JsonEx()

new JsonEx()

The static class that handles JSON with object information.
Properties:
Name Type Description
maxDepth Number [static] The maximum depth of objects(default:100)

Methods

(static) makeDeepCopy(object) → {Object}

Makes a deep copy of the specified object.
Parameters:
Name Type Description
object Object The object to be copied
Returns:
The copied object
Type
Object

(static) parse(json) → {Object}

Parses a JSON string and reconstructs the corresponding object.
Parameters:
Name Type Description
json String The JSON string
Returns:
The reconstructed object
Type
Object

(static) stringify(object) → {String}

Converts an object to a JSON string with object information.
Parameters:
Name Type Description
object Object The object to be converted
Returns:
The JSON string
Type
String