Type Alias: JSONPathEnvironmentOptions
JSONPathEnvironmentOptions:
object
Defined in: src/path/environment.ts:27
JSONPath environment options. The defaults are in compliance with JSONPath standards.
Type declaration
keysPattern?
optionalkeysPattern:RegExp
The pattern to use for the non-standard keys selector.
The lexer expects the sticky bit to be set. Defaults to /~/y.
maxIntIndex?
optionalmaxIntIndex:number
The maximum number allowed when indexing or slicing an array. Defaults to 2**53 -1.
maxRecursionDepth?
optionalmaxRecursionDepth:number
The maximum number of objects and/or arrays the recursive descent selector
can visit before a JSONPathRecursionLimitError is thrown.
minIntIndex?
optionalminIntIndex:number
The minimum number allowed when indexing or slicing an array. Defaults to -(2**53) -1.
nondeterministic?
optionalnondeterministic:boolean
If true, enable nondeterministic ordering when iterating JSON object data.
This is mainly useful for validating the JSONPath Compliance Test Suite.
strict?
optionalstrict:boolean
Indicates if the environment should to be strict about its compliance with RFC 9535.
Defaults to true. Setting strict to false enables non-standard
features. Non-standard features are subject to change if conflicting
features are included in a future JSONPath standard or draft standard, or
an overwhelming consensus amongst the JSONPath community emerges that
differs from this implementation.