Skip to content

JSONPath Tools / @jsonpath-tools/jsonpath

@jsonpath-tools/jsonpath

JSONPath (RFC 9535) query evaluation, analysis and editor services.

Enumerations

EnumerationDescription
ComparisonOperatorComparison operator.
CompletionItemTextTypeType of a completion item text.
CompletionItemTypeType of a completion item.
DiagnosticsSeveritySeverity of the diagnostics.
QueryTypeType of a query.
SegmentTypeType of a segment.
SyntaxTreeTypeType of a syntax tree.
TypeType from the JSONPath type system.

Classes

ClassDescription
AndExpressionLogical AND.
AnyDataTypeTop data type. Contains all values.
ArrayDataTypeData type for JSON arrays. Contains all JSON arrays that meet criteria from prefixElementTypes, restElementType and requiredElementCount.
BooleanLiteralExpressionBoolean literal.
CheckerJSONPath query checker.
ComparisonExpressionComparison.
CompletionItemCompletion item.
CompletionServiceProvides completion items.
DataTypeData type. Refines the JSONPath types.
DataTypeAnnotationAnnotation of a data type (description, example values, ...).
DiagnosticsDiagnostics related to the query.
DocumentHighlightOne document highlight.
DocumentHighlightsServiceProvides highlights of related symbols.
EditorServiceProvides services for JSONPath editors.
FilterExpressionExpression in a filter selector.
FilterQueryExpressionSubquery in a filter expression.
FilterSelectorFilter selector.
FormattingServiceFormats query text to be more readable and consistent.
FunctionExpressionFunction.
IndexSelectorIndex selector.
JSONPathJSONPath evaluator compliant with standard RFC 9535.
JSONPathErrorError meaning that a JSONPath query is not well-formed or valid.
LiteralDataTypeUnit data type. Contains only the value.
MissingExpressionMissing expression.
MissingSelectorMissing selector.
NameSelectorName selector.
NeverDataTypeBottom data type. Contains no values.
NodeJSON value with its location.
NodeListList of Nodes.
NotExpressionLogical NOT.
NullLiteralExpressionNull literal.
NumberLiteralExpressionNumber literal.
ObjectDataTypeData type for JSON objects. Contains all JSON objects that meet criteria from propertyTypes, restPropertyType and requiredProperties.
OrExpressionLogical OR.
ParanthesisExpressionParanthesis.
ParserJSONPath query parser.
PrimitiveDataTypeData type for primitive JSON values and a special JSONPath value Nothing. Contains all values from type.
QueryJSONPath query.
SegmentQuery segment.
SelectorSelector.
SignatureSignature.
SignatureHelpServiceProvides a signature for a called function.
SignatureParameterSignature parameter.
SliceSelectorSlice selector.
StringLiteralExpressionString literal.
SubQueryQuery.
SyntaxDescriptionServiceProvides a description for parts of a query syntax tree.
SyntaxTreePart of a query syntax tree.
SyntaxTreeNodeNonterminal symbols of the grammar.
SyntaxTreeTokenTerminal symbols of the grammar.
TextChangeRepresents a change of a text.
TextRangeRepresents a contiguous range in a text.
TooltipTooltip.
TooltipServiceProvides tooltips with information about query parts.
UnionDataTypeSum data type. Contains values from an union of the types.
WildcardSelectorWildcard selector.

Interfaces

InterfaceDescription
FilterExpressionContextContext of a query filter selector filter expression evaluation.
FunctionJSONPath function.
FunctionContextContext of a function execution.
FunctionParameterParameter of a JSONPath function.
IndexOnlyArrayArray that can only be read
JSONSchemaWithURIJSON schema with its URI.
JSONTypeDefinitionJSON Type Definition.
ObjectJSONSchema-
PushOnlyArrayArray that can only be read and pushed into.
QueryContextContext of a query evaluation.
QueryOptionsDefines an environment in which the JSONPath query is executed.

Type Aliases

Type AliasDescription
FilterValueValue in filter expressions.
FunctionHandlerJavaScript function that implements a JSONPath function.
JSONSchemaJSON Schema.
JSONSchemaDictionary-
JSONSchemaType-
JSONTypeDefinitionDictionary-
JSONTypeDefinitionType-
JSONValueAny JSON value.
LogicalTypeLogicalTrue or LogicalFalse.
NodesTypeNodeList.
NormalizedPathJSONPath query syntactically constrained in a way that each node corresponds to exactly one normalized path, and each normalized path leads to at most one node.
NormalizedPathSegmentSegment of NormalizedPath. Property name or index.
ValueTypeJSONValue or Nothing.

Variables

VariableDescription
defaultQueryOptionsQuery options with functions from the JSONPath standard.
LogicalFalseRepresents a falsy value in filter expressions.
LogicalTrueRepresents a truthy value in filter expressions.
NothingRepresents the absence of a JSON value.

Functions

FunctionDescription
isLogicalTypeChecks whether the given filter value is an instance of LogicalType.
isNodesTypeChecks whether the given filter value is an instance of NodesType.
isValueTypeChecks whether the given filter value is an instance of ValueType.
jsonSchemaToTypeConverts the given JSON Schema to a data type.
jsonTypeDefinitionToTypeConverts the given JSON Type Definition (RFC 8927) to a data type.
removeAtPathsRemoves JSON values at the given normalized paths.
replaceAtPathsReplaces JSON values at the given normalized paths.
serializeBooleanConverts a boolean to a text representation.
serializedNormalizedPathConverts a normalized path to a text representation.
serializeLiteralConverts a literal to a text representation.
serializeNullConverts a null to a text representation.
serializeNumberConverts a number to a text representation.
serializeStringConverts a string to a text representation.