jsonpath-plus
    Preparing search index...

    Function JSONPath

    • Parameters

      • opts: string

        JSON path to evaluate

      • Optionalexpr: any

        JSON object to evaluate against

      • Optionalobj: JSONPathCallback

        Passed 3 arguments: 1) desired payload per resultType, 2) "value"|"property", 3) Full returned object with all payloads

      • Optionalcallback: OtherTypeCallback

        If @other() is at the end of one's query, this will be invoked with the value of the item, its path, its parent, and its parent's property name, and it should return a boolean indicating whether the supplied value belongs to the "other" type or not (or it may handle transformations and return false).

      • OptionalotherTypeCallback: undefined

      Returns unknown

      The string form always has autostart implicitly true, so the result is the evaluated value, not a JSONPathClass

    • Parameters

      • opts: JSONPathOptions & { autostart: false }

        An options object with autostart explicitly set to false defers evaluation and returns the JSONPathClass instance instead

      Returns JSONPathClass

    • Parameters

      Returns unknown

    Index
    cache: Record<string, unknown>
    prototype: JSONPathClass
    • Parameters

      • expr: string

        Expression to convert

      Returns string[]

    • Parameters

      • pathArr: string[]

        Array to convert

      Returns string

      The path string

    • Parameters

      • pointer: string[]

        JSON Path array

      Returns string

      JSON Pointer