JsonEx Class

The static class that handles JSON with object information.

Item Index

Methods Properties

Methods

makeDeepCopy ( object ) Object [static]

Makes a deep copy of the specified object.

Parameters:

  • object Object

    The object to be copied

Returns:

Object:
The copied object

parse ( json ) Object [static]

Parses a JSON string and reconstructs the corresponding object.

Parameters:

  • json String

    The JSON string

Returns:

Object:
The reconstructed object

stringify ( object ) String [static]

Converts an object to a JSON string with object information.

Parameters:

  • object Object

    The object to be converted

Returns:

String:
The JSON string

Properties

maxDepth  Number [static]

The maximum depth of objects.

Default: 100