JsonPath

A compiled RFC 9535 JSONPath query (SPEC.md §10): the whole grammar, with the functions length, count, match, search and value. Compile once, then use it for any number of JsonStore.select and JsonStore.search calls. Immutable and thread-safe; two queries are equal when their texts are.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

What in the query is valid RFC 9535 but can't be what was meant, in the order of the text; empty for nearly every query. Today that is a match or search whose pattern is a literal that makes it false for every value: a string that isn't I-Regexp, such as '(?i)abc', or a number, true, false or null (SPEC.md §10.1). The query still runs as RFC 9535 says; a tool shows these to whoever wrote it. They follow from the text alone, so two equal queries have the same warnings. A pattern that NFC makes valid or invalid warns too, and the reason says whether it is false in a store with normalization or in one without.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String