Constructors

Methods

  • Convenience wrapper around jp. Calls .get when called with an object and a pointer. Calls .set when also called with value. If only supplied object, returns a partially applied function, mapped to the object.

    Parameters

    Returns any

  • Escapes a reference token

    Parameters

    • str: string | number

    Returns string

  • Returns true if potentialAncestor is an ancestor of jsonPtr. For example, if jsonPtr is /a/b/c/d and potentialAncestor is /a/b, this returns true.

    Parameters

    • jsonPtr: string

      The JSON pointer to check.

    • potentialAncestor: string

      The potential ancestor JSON pointer.

    Returns boolean

  • Converts a JSON pointer into an array of reference tokens

    Parameters

    • pointer: string

    Returns string[]

  • Unescapes a reference token

    Parameters

    • str: string

    Returns string

Generated using TypeDoc