Namespace: JsonEx

JsonEx

The static class that handles JSON with object information.

Members

JsonEx.maxDepth number static

The maximum depth of objects.

Default Value:
  • 100

Methods

JsonEx.makeDeepCopy (object)object static

Makes a deep copy of the specified object.

Name Type Description
object object

The object to be copied.

Returns:
Type Description
object The copied object.

JsonEx.parse (json)object static

Parses a JSON string and reconstructs the corresponding object.

Name Type Description
json string

The JSON string.

Returns:
Type Description
object The reconstructed object.

JsonEx.stringify (object)string static

Converts an object to a JSON string with object information.

Name Type Description
object object

The object to be converted.

Returns:
Type Description
string The JSON string.