Name

JsonHandler

Hierarchy

  • JsonHandler

Constructors

Methods

  • Serializes a plain language object to its JSON string representation.

    Parameters

    • obj: any

      a plain language object

    Returns string

    a JSON string representation of the object

    Throws

    Exception if conversion fails

  • Uses JSON Path to retrieve a value from a JSON object at the given path

    Parameters

    • jsonObject: any

      the JSON object from which to retrieve the value

    • jsonPath: string

      the JSON path string to locate the value

    Returns any

    the value retrieved

  • Parses a JSON string into a platform specific representation.

    Parameters

    • jsonString: string

      the string to parse

    Returns any

    a platform specific representation of the JSON object

  • Patches a platform specific JSON representation with an RFC 6902 JSON patch string.

    Parameters

    • existingObject: any

      the platform specific JSON representation

    • jsonPatchString: string

      the json patch string in RFC 6902 format

    Returns any

    a platform specific representation of the patched JSON object

Generated using TypeDoc