zibri
    Preparing search index...

    Class JsonUtilitiesAbstract

    Utilities for handling json.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Converts a JavaScript Object Notation (JSON) string into an object.

      Type Parameters

      • T

      Parameters

      • value: string

        A valid JSON string.

      • Optionalreviver: (this: any, key: string, value: unknown) => unknown

        A function that transforms the results. This function is called for each member of the object. If a member contains nested objects, the nested objects are transformed before the parent object is.

      Returns T

      The parsed object.

      If text is not valid JSON.

    • Converts a JavaScript value to a JavaScript Object Notation (JSON) string.

      Type Parameters

      • T

      Parameters

      • value: T

        A JavaScript value, usually an object or array, to be converted.

      • Optionalreplacer: (this: any, key: string, value: unknown) => unknown

        A function that transforms the results.

      • Optionalspace: string | number

        Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.

      Returns string

      A json string.

      If a circular reference is found.