Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface JsonExStatic

The static class that handles JSON with object information.

class

JsonEx

Hierarchy

  • JsonExStatic

Index

Properties

maxDepth

maxDepth: number

The maximum depth of objects.

static
property

maxDepth

type

Number

default

100

Methods

Private _decode

  • _decode(value: any): any

Private _encode

  • _encode(value: any, depth: number): any

Private _getConstructorName

  • _getConstructorName(value: any): string

Private _resetPrototype

  • _resetPrototype(value: any, prototype: any): any

makeDeepCopy

  • makeDeepCopy(object: any): any
  • Makes a deep copy of the specified object.

    static
    method

    makeDeepCopy

    Parameters

    • object: any

      The object to be copied

    Returns any

    The copied object

parse

  • parse(json: string): any
  • Parses a JSON string and reconstructs the corresponding object.

    static
    method

    parse

    Parameters

    • json: string

      The JSON string

    Returns any

    The reconstructed object

stringify

  • stringify(object: any): string
  • Converts an object to a JSON string with object information.

    static
    method

    stringify

    Parameters

    • object: any

      The object to be converted

    Returns string

    The JSON string

Generated using TypeDoc