Options
All
  • Public
  • Public/Protected
  • All
Menu

Class JsonPath

Hierarchy

  • JsonPath

Hierarchy-Diagram

Index

Constructors

Properties

Methods

Constructors

constructor

  • new JsonPath(expression: string): JsonPath
  • constructs a compiled expression.

    Parameters

    • expression: string

      to compile.

    Returns JsonPath

Properties

Private expression

expression: string

normalized JSON path expression.

Private simple

simple: boolean

whether the expression is a simple property access.

Methods

evaluate

  • evaluate(obj: any, arg?: object): any
  • evaluates the expression on a target object.

    Parameters

    • obj: any

      to evaluate expression on.

    • Optional arg: object

      options object.

    Returns any

    result of evaluating expression on object.

Generated using TypeDoc