jsonpath-plus
    Preparing search index...

    Class JSONPathClass

    Index
    • 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 JSONPathClass | typeof JSONPath

    • Parameters

      Returns JSONPathClass

    _hasParentSelector: boolean
    currEval: EvalValue | undefined
    currOtherTypeCallback: OtherTypeCallback | undefined
    currResultType: ResultType | undefined
    currSandbox: SandboxType | undefined
    eval: EvalValue
    flatten: boolean | undefined
    ignoreEvalErrors: boolean
    json: any
    otherTypeCallback: OtherTypeCallback
    parent: any
    parentProperty: ParentProperty | undefined
    path: any
    resultType: ResultType
    sandbox: SandboxType
    wrap: boolean | undefined
    • Parameters

      • val: unknown
      • f: (prop: string | number) => void

      Returns void