<?xml version="1.0" encoding="UTF-8"?>
  <?xml-stylesheet type="text/xsl" href="rfc2629.xslt" ?>
  <!-- generated by https://github.com/cabo/kramdown-rfc version 1.6.17 (Ruby 2.6.10) -->


<!DOCTYPE rfc  [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">

]>

<?rfc comments="yes"?>

<rfc ipr="trust200902" docName="draft-ietf-jsonpath-base-12" category="std" consensus="true" submissionType="IETF" xml:lang="en" tocDepth="4" tocInclude="true" sortRefs="true" symRefs="true">
  <front>
    <title abbrev="JSONPath">JSONPath: Query expressions for JSON</title>

    <author initials="S." surname="Gössner" fullname="Stefan Gössner" role="editor">
      <organization>Fachhochschule Dortmund</organization>
      <address>
        <postal>
          <street>Sonnenstraße 96</street>
          <city>Dortmund</city>
          <code>D-44139</code>
          <country>Germany</country>
        </postal>
        <email>stefan.goessner@fh-dortmund.de</email>
      </address>
    </author>
    <author initials="G." surname="Normington" fullname="Glyn Normington" role="editor">
      <organization></organization>
      <address>
        <postal>
          <street></street>
          <city>Winchester</city>
          <region></region>
          <code></code>
          <country>UK</country>
        </postal>
        <phone></phone>
        <email>glyn.normington@gmail.com</email>
      </address>
    </author>
    <author initials="C." surname="Bormann" fullname="Carsten Bormann" role="editor">
      <organization>Universität Bremen TZI</organization>
      <address>
        <postal>
          <street>Postfach 330440</street>
          <city>Bremen</city>
          <code>D-28359</code>
          <country>Germany</country>
        </postal>
        <phone>+49-421-218-63921</phone>
        <email>cabo@tzi.org</email>
      </address>
    </author>

    <date year="2023"/>

    <area>ART</area>
    <workgroup>JSONPath WG</workgroup>
    <keyword>JSON</keyword>

    <abstract>


<t>JSONPath defines a string syntax for selecting and extracting JSON (RFC 8259) values
from a JSON value.</t>



    </abstract>

    <note title="About This Document" removeInRFC="true">
      <t>
        Status information for this document may be found at <eref target="https://datatracker.ietf.org/doc/draft-ietf-jsonpath-base/"/>.
      </t>
      <t>
        Discussion of this document takes place on the
        JSON Path Working Group mailing list (<eref target="mailto:jsonpath@ietf.org"/>),
        which is archived at <eref target="https://mailarchive.ietf.org/arch/browse/jsonpath/"/>.
        Subscribe at <eref target="https://www.ietf.org/mailman/listinfo/jsonpath/"/>.
      </t>
      <t>Source for this draft and an issue tracker can be found at
        <eref target="https://github.com/ietf-wg-jsonpath/draft-ietf-jsonpath-base"/>.</t>
    </note>


  </front>

  <middle>


<!-- define an ALD to simplify below -->
<!-- use as {: unnumbered} -->

<!-- editorial issue: lots of complicated nesting of quotes, as in -->
<!-- `"13 == '13'"` or `$`.  We probably should find a simpler style -->

<section anchor="introduction"><name>Introduction</name>

<t>JSON <xref target="RFC8259"/> is a popular representation
format for structured data values.
JSONPath defines a string syntax for selecting and extracting JSON values
from a JSON value.</t>

<t>JSONPath is not intended as a replacement for, but as a more powerful
companion to, JSON Pointer <xref target="RFC6901"/>. See <xref target="json-pointer"/>.</t>

<section anchor="terminology"><name>Terminology</name>

<t>The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>", "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL
NOT</bcp14>", "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>", "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>",
"<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document are to be interpreted as
described in BCP 14 <xref target="RFC2119"/> <xref target="RFC8174"/> when, and only when, they
appear in all capitals, as shown here.</t>

<t>The grammatical rules in this document are to be interpreted as ABNF,
as described in <xref target="RFC5234"/>.
ABNF terminal values in this document define Unicode code points rather than
their UTF-8 encoding.
For example, the Unicode PLACE OF INTEREST SIGN (U+2318) would be defined
in ABNF as <spanx style="verb">%x2318</spanx>.</t>

<t>The terminology of <xref target="RFC8259"/> applies except where clarified below.
The terms "Primitive" and "Structured" are used to group
different kinds of values as in <xref section="1" sectionFormat="of" target="RFC8259"/>; JSON Objects and Arrays are
structured, all other values are primitive.
Definitions for "Object", "Array", "Number", and "String" remain
unchanged.
Importantly "object" and "array" in particular do not take on a
generic meaning, such as they would in a general programming context.</t>

<t>Additional terms used in this document are defined below.</t>

<dl>
  <dt>Value:</dt>
  <dd>
    <t>As per <xref target="RFC8259"/>, a structure conforming to the generic data model of JSON, i.e.,
composed of constituents such as structured values, namely JSON objects and arrays, and
primitive data, namely numbers and text strings as well as the special
values null, true, and false.
<xref target="RFC8259"/> focuses on the textual representation of JSON values and
does not fully define the value abstraction assumed here.</t>
  </dd>
  <dt>Member:</dt>
  <dd>
    <t>A name/value pair in an object.  (A member is not itself a value.)</t>
  </dd>
  <dt>Name:</dt>
  <dd>
    <t>The name (a string) in a name/value pair constituting a member.
This is also used in <xref target="RFC8259"/>, but that specification does not
formally define it.
It is included here for completeness.</t>
  </dd>
  <dt>Element:</dt>
  <dd>
    <t>A value in a JSON array.</t>
  </dd>
  <dt>Index:</dt>
  <dd>
    <t>An integer that identifies a specific element in an array.</t>
  </dd>
  <dt>Query:</dt>
  <dd>
    <t>Short name for a JSONPath expression.</t>
  </dd>
  <dt>Query Argument:</dt>
  <dd>
    <t>Short name for the value a JSONPath expression is applied to.
(Also used for actual parameters of function-expressions.)</t>
  </dd>
  <dt>Location:</dt>
  <dd>
    <t>the position of a value within the query argument. This can be thought of
as a sequence of names and indexes navigating to the value through
the objects and arrays in the query argument, with the empty sequence
indicating the query argument itself.
A location can be represented as a Normalized Path (defined below).</t>
  </dd>
  <dt>Node:</dt>
  <dd>
    <t>The pair of a value along with its location within the query argument.</t>
  </dd>
  <dt>Root Node:</dt>
  <dd>
    <t>The unique node whose value is the entire query argument.</t>
  </dd>
  <dt>Root Node Identifier:</dt>
  <dd>
    <t>The expression <spanx style="verb">$</spanx> which refers to the root node of the query argument.</t>
  </dd>
  <dt>Current Node Identifier:</dt>
  <dd>
    <t>The expression <spanx style="verb">@</spanx> which refers to the current node in the context
of the evaluation of a filter expression (described later).</t>
  </dd>
  <dt>Children (of a node):</dt>
  <dd>
    <t>If the node is an array, the nodes of its elements.
If the node is an object, the nodes of its member values.
If the node is neither an array nor an object, it has no children.</t>
  </dd>
  <dt>Descendants (of a node):</dt>
  <dd>
    <t>The children of the node, together with the children of its children, and so forth
recursively. More formally, the descendants relation between nodes is the transitive
closure of the children relation.</t>
  </dd>
  <dt>Depth (of a descendant node within a value):</dt>
  <dd>
    <t>The number of ancestors of the node within the value. The root node of the value has depth zero,
the children of the root node have depth one, their children have depth two, and so forth.</t>
  </dd>
  <dt>Segment:</dt>
  <dd>
    <t>One of the constructs which select children (<spanx style="verb">[]</spanx>)
or descendants (<spanx style="verb">..[]</spanx>) of an input value.</t>
  </dd>
  <dt>Nodelist:</dt>
  <dd>
    <t>A list of nodes.
While a nodelist can be represented in JSON, e.g. as an array, this document
does not require or assume any particular representation.</t>
  </dd>
  <dt>Parameter:</dt>
  <dd>
    <t>Formal parameter (of a function) that can take a function argument
(an actual parameter) in a function-expression.</t>
  </dd>
  <dt>Normalized Path:</dt>
  <dd>
    <t>A form of JSONPath expression that identifies a node in a value by
providing a query that results in exactly that node.  Each node in a
query argument is identified by exactly one Normalized Path (we say, the
Normalized Path is "unique" for that node), and, to be a Normalized
Path for a specific query argument, the Normalized Path needs to identify
exactly one node. Similar
to, but syntactically different from, a JSON Pointer <xref target="RFC6901"/>.</t>
  </dd>
  <dt>Unicode Scalar Value:</dt>
  <dd>
    <t>Any Unicode <xref target="UNICODE"/> code point except high-surrogate and low-surrogate code points.
In other words, integers in either of the inclusive base 16 ranges 0 to D7FF and
E000 to 10FFFF. JSON string values are sequences of Unicode scalar values.</t>
  </dd>
  <dt>Singular Query:</dt>
  <dd>
    <t>A JSONPath expression built from segments each of which, regardless of the input value,
produces a nodelist containing at most one node.</t>
  </dd>
  <dt>Selector:</dt>
  <dd>
    <t>A single item within a segment that takes the input value and produces a nodelist
consisting of child nodes of the input value.</t>
  </dd>
</dl>

<section anchor="json-values-as-trees-of-nodes"><name>JSON Values as Trees of Nodes</name>

<t>This document models the query argument as a tree of JSON values, each
with its own node.
A node is either the root node or one of its descendants.</t>

<t>This document models the result of applying a query to the
query argument as a nodelist (a list of nodes).</t>

<t>Nodes are the selectable parts of the query argument.
The only parts of an object that can be selected by a query are the
member values. Member names and members (name/value pairs) cannot be
selected.
Thus, member values have nodes, but members and member names do not.
Similarly, member values are children of an object, but members and
member names are not.</t>

</section>
</section>
<section anchor="history"><name>History</name>

<t>This section is informative.</t>

<t>This document is based on <contact fullname="Stefan Gössner"/>'s popular JSONPath proposal
dated 2007-02-21 <xref target="JSONPath-orig"/>, builds on the experience from the widespread
deployment of its implementations, and provides a normative specification for it.</t>

<t><xref target="inspired-by-xpath"/> describes how JSONPath was inspired by XML's XPath
<xref target="XPath"></xref>.</t>

<t>JSONPath was intended as a light-weight companion to JSON
implementations in programming languages such as PHP and JavaScript,
so instead of defining its own expression language, like XPath did,
JSONPath delegated parts of a query to the underlying
runtime, e.g., JavaScript's <spanx style="verb">eval()</spanx> function.
As JSONPath was implemented in more environments, JSONPath
expressions became decreasingly portable.
For example, regular expression processing was often delegated to a
convenient regular expression engine.</t>

<t>This document aims to remove such implementation-specific dependencies and
serve as a common JSONPath specification that can be used across
programming languages and environments.
This means that backwards compatibility is
not always achieved; a design principle of this document is to
go with a "consensus" between implementations even if it is rough, as
long as that does not jeopardize the objective of obtaining a usable,
stable JSON query language.</t>

<t>The term <em>JSONPath</em> was chosen because of the XPath inspiration and also because
the outcome of a query consists of <em>paths</em> identifying nodes in the
JSON query argument.</t>

</section>
<section anchor="json-values"><name>JSON Values</name>

<t>The JSON value a JSONPath query is applied to is, by definition, a
valid JSON value. A JSON value is often constructed by parsing
a JSON text.</t>

<t>The parsing of a JSON text into a JSON value and what happens if a JSON
text does not represent valid JSON are not defined by this document.
Sections <xref target="RFC8259" section="4" sectionFormat="bare"/> and <xref target="RFC8259" section="8" sectionFormat="bare"/> of <xref target="RFC8259"/> identify specific situations that may
conform to the grammar for JSON texts but are not interoperable uses
of JSON, as they may cause unpredictable behavior.
This document does not attempt to define predictable
behavior for JSONPath queries in these situations.</t>

<t>Specifically, the "Semantics" subsections of Sections
<xref format="counter" target="name-selector"/>, <xref format="counter" target="wildcard-selector"/>,
<xref format="counter" target="filter-selector"/>, and <xref format="counter" target="descendant-segment"/> describe behavior that
becomes unpredictable when the JSON value for one of the objects
under consideration was constructed out of JSON text that exhibits
multiple members for a single object that share the same member name
("duplicate names", see <xref section="4" sectionFormat="of" target="RFC8259"/>).
Also, selecting a child by name (<xref target="name-selector"/>) and comparing strings
(<xref target="comparisons"/> in <xref target="filter-selector"/>) assume these
strings are sequences of Unicode scalar values, becoming unpredictable
if they are not (<xref section="8.2" sectionFormat="of" target="RFC8259"/>).</t>

</section>
<section anchor="overview"><name>Overview of JSONPath Expressions</name>

<t>This section is informative.</t>

<t>A JSONPath expression is applied to a JSON value, known as the query argument.
The output is a nodelist.</t>

<t>A JSONPath expression consists of an identifier followed by a series
of zero or more segments each of which contains one or more selectors.</t>

<section anchor="ids"><name>Identifiers</name>

<t>The root node identifier <spanx style="verb">$</spanx> refers to the root node of the query argument,
i.e., to the argument as a whole.</t>

<t>The current node identifier <spanx style="verb">@</spanx> refers to the current node in the context
of the evaluation of a filter expression (<xref target="filter-selector"/>).</t>

</section>
<section anchor="segments"><name>Segments</name>

<t>Segments select children (<spanx style="verb">[]</spanx>) or descendants (<spanx style="verb">..[]</spanx>) of an input value.</t>

<t>Segments can use <em>bracket notation</em>, for example:</t>

<figure><sourcecode type="JSONPath"><![CDATA[
$['store']['book'][0]['title']
]]></sourcecode></figure>

<t>or the more compact <em>dot notation</em>, for example:</t>

<figure><sourcecode type="JSONPath"><![CDATA[
$.store.book[0].title
]]></sourcecode></figure>

<t>A JSONPath expression may use a combination of bracket and dot notations.</t>

<t>This document treats the bracket notations as canonical and defines the shorthand dot notation in terms
of bracket notation. Examples and descriptions use shorthands where convenient.</t>

</section>
<section anchor="selectors"><name>Selectors</name>

<t>A name selector, e.g. <spanx style="verb">'name'</spanx>, selects a named child of an object.</t>

<t>An index selector, e.g. <spanx style="verb">3</spanx>, selects an indexed child of an array.</t>

<t>A wildcard <spanx style="verb">*</spanx> (<xref target="wildcard-selector"/>) in the expression <spanx style="verb">[*]</spanx> selects all children of a
node and in the expression <spanx style="verb">..[*]</spanx> selects all descendants of a node.</t>

<t>An array slice <spanx style="verb">start:end:step</spanx> (<xref target="slice"/>) selects a series of
elements from an array, giving a start position, an end position, and
an optional step value that moves the position from the start to the
end.</t>

<t>Filter expressions <spanx style="verb">?&lt;logical-expr&gt;</spanx> select certain children of an object or array, as in:</t>

<figure><sourcecode type="JSONPath"><![CDATA[
$.store.book[?@.price < 10].title
]]></sourcecode></figure>

</section>
<section anchor="summary"><name>Summary</name>

<t><xref target="tbl-overview"/> provides a brief overview of JSONPath syntax.</t>

<texttable title="Overview of JSONPath syntax" anchor="tbl-overview">
      <ttcol align='left'>Syntax Element</ttcol>
      <ttcol align='left'>Description</ttcol>
      <c><spanx style="verb">$</spanx></c>
      <c><xref target="root-identifier">root node identifier</xref></c>
      <c><spanx style="verb">@</spanx></c>
      <c><xref target="filter-selector">current node identifier</xref> (valid only within filter selectors)</c>
      <c><spanx style="verb">[&lt;selectors&gt;]</spanx></c>
      <c><xref target="child-segment">child segment</xref> selects zero or more children of a node; contains one or more selectors, separated by commas</c>
      <c><spanx style="verb">.name</spanx></c>
      <c>shorthand for <spanx style="verb">['name']</spanx></c>
      <c><spanx style="verb">.*</spanx></c>
      <c>shorthand for <spanx style="verb">[*]</spanx></c>
      <c><spanx style="verb">..[&lt;selectors&gt;]</spanx></c>
      <c><xref target="descendant-segment">descendant segment</xref>: selects zero or more descendants of a node; contains one or more selectors, separated by commas</c>
      <c><spanx style="verb">..name</spanx></c>
      <c>shorthand for <spanx style="verb">..['name']</spanx></c>
      <c><spanx style="verb">..*</spanx></c>
      <c>shorthand for <spanx style="verb">..[*]</spanx></c>
      <c><spanx style="verb">'name'</spanx></c>
      <c><xref target="name-selector">name selector</xref>: selects a named child of an object</c>
      <c><spanx style="verb">*</spanx></c>
      <c><xref target="name-selector">wildcard selector</xref>: selects all children of a node</c>
      <c><spanx style="verb">3</spanx></c>
      <c><xref target="index-selector">index selector</xref>: selects an indexed child of an array (from 0)</c>
      <c><spanx style="verb">0:100:5</spanx></c>
      <c><xref target="slice">array slice selector</xref>: start:end:step for arrays</c>
      <c><spanx style="verb">?&lt;logical-expr&gt;</spanx></c>
      <c><xref target="filter-selector">filter selector</xref>: selects particular children using a logical expression</c>
      <c><spanx style="verb">length(@.foo)</spanx></c>
      <c><xref target="fnex">function extension</xref>: invokes a function in a filter expression</c>
</texttable>

</section>
</section>
<section anchor="jsonpath-examples"><name>JSONPath Examples</name>

<t>This section is informative. It provides examples of JSONPath expressions.</t>

<t>The examples are based on the simple JSON value shown in
<xref target="fig-example-value"/>, representing a bookstore (that also has a bicycle).</t>

<figure title="Example JSON value" anchor="fig-example-value"><sourcecode type="json"><![CDATA[
{ "store": {
    "book": [
      { "category": "reference",
        "author": "Nigel Rees",
        "title": "Sayings of the Century",
        "price": 8.95
      },
      { "category": "fiction",
        "author": "Evelyn Waugh",
        "title": "Sword of Honour",
        "price": 12.99
      },
      { "category": "fiction",
        "author": "Herman Melville",
        "title": "Moby Dick",
        "isbn": "0-553-21311-3",
        "price": 8.99
      },
      { "category": "fiction",
        "author": "J. R. R. Tolkien",
        "title": "The Lord of the Rings",
        "isbn": "0-395-19395-8",
        "price": 22.99
      }
    ],
    "bicycle": {
      "color": "red",
      "price": 399
    }
  }
}
]]></sourcecode></figure>

<t><xref target="tbl-example"/> shows some JSONPath queries that might be applied to this example and their intended results.</t>

<texttable title="Example JSONPath expressions and their intended results when applied to the example JSON value" anchor="tbl-example">
      <ttcol align='left'>JSONPath</ttcol>
      <ttcol align='left'>Intended result</ttcol>
      <c><spanx style="verb">$.store.book[*].author</spanx></c>
      <c>the authors of all books in the store</c>
      <c><spanx style="verb">$..author</spanx></c>
      <c>all authors</c>
      <c><spanx style="verb">$.store.*</spanx></c>
      <c>all things in store, which are some books and a red bicycle</c>
      <c><spanx style="verb">$.store..price</spanx></c>
      <c>the prices of everything in the store</c>
      <c><spanx style="verb">$..book[2]</spanx></c>
      <c>the third book</c>
      <c><spanx style="verb">$..book[-1]</spanx></c>
      <c>the last book in order</c>
      <c><spanx style="verb">$..book[0,1]</spanx><br /><spanx style="verb">$..book[:2]</spanx></c>
      <c>the first two books</c>
      <c><spanx style="verb">$..book[?(@.isbn)]</spanx></c>
      <c>all books with an ISBN number</c>
      <c><spanx style="verb">$..book[?(@.price&lt;10)]</spanx></c>
      <c>all books cheaper than 10</c>
      <c><spanx style="verb">$..*</spanx></c>
      <c>all member values and array elements contained in the input value</c>
</texttable>

</section>
</section>
<section anchor="jsonpath-syntax-and-semantics"><name>JSONPath Syntax and Semantics</name>

<section anchor="synsem-overview"><name>Overview</name>

<t>A JSONPath <em>expression</em> is a string which, when applied to a JSON value,
the <em>query argument</em>, selects zero or more nodes of the argument and outputs
these nodes as a nodelist.</t>

<t>A query <bcp14>MUST</bcp14> be encoded using UTF-8.
The grammar for queries given in this document assumes that its UTF-8 form is first decoded into
Unicode code points as described
in <xref target="RFC3629"/>; implementation approaches that lead to an equivalent
result are possible.</t>

<t>A string to be used as a JSONPath query needs to be <em>well formed</em> and
<em>valid</em>.
A string is a well-formed JSONPath query if it conforms to the ABNF syntax in this document.
A well-formed JSONPath query is valid if it also fulfills all semantic
requirements posed by this document, which are:</t>

<t><list style="numbers">
  <t>Integer numbers in the JSONPath query that are relevant
to the JSONPath processing (e.g., index values and steps) <bcp14>MUST</bcp14> be
within the range of exact values defined in I-JSON <xref target="RFC7493"/>, namely
within the interval [-(2<sup>53</sup>)+1, (2<sup>53</sup>)-1].</t>
  <t>Uses of function extensions must be <em>well typed</em>,
as described in <xref target="fnex"/>.</t>
</list></t>

<t>A JSONPath implementation <bcp14>MUST</bcp14> raise an error for any query which is not
well formed and valid.
The well-formedness and the validity of JSONPath queries are independent of
the JSON value the query is applied to. No further errors relating to the
well-formedness and the validity of a JSONPath query can be
raised during application of the query to a value.</t>

<t>Obviously, an implementation can still fail when executing a JSONPath
query, e.g., because of resource depletion, but this is not modeled in
this document.  However, the implementation <bcp14>MUST NOT</bcp14>
silently malfunction.  Specifically, if a valid JSONPath query is
evaluated against a structured value whose size does not fit in the
range of exact values, interfering with the correct interpretation of
the query, the implementation <bcp14>MUST</bcp14> provide an indication of overflow.</t>

<t>(Readers familiar with the HTTP error model may be reminded of 400
type errors when pondering well-formedness and validity, while
resource depletion and related errors are comparable to 500 type
errors.)</t>

<section anchor="syntax"><name>Syntax</name>

<t>Syntactically, a JSONPath query consists of a root identifier (<spanx style="verb">$</spanx>), which
stands for a nodelist that contains the root node of the query argument,
followed by a possibly empty sequence of <em>segments</em>.</t>

<figure><sourcecode type="abnf"><![CDATA[
jsonpath-query      = root-identifier segments
segments            = *(S segment)
]]></sourcecode></figure>

<t>The syntax and semantics of segments are defined in <xref target="segments-details"/>.</t>

</section>
<section anchor="semantics"><name>Semantics</name>

<t>In this document, the semantics of a JSONPath query define the
required results and do not prescribe the internal workings of an
implementation.  This document may describe semantics in a procedural
step-by-step fashion, but such descriptions are normative only in the sense that any implementation <bcp14>MUST</bcp14> produce an identical result, but not in the sense that implementors are required to use the same algorithms.</t>

<t>The semantics are that a valid query is executed against a value,
the <em>query argument</em>, and produces a nodelist (i.e., a list of zero or more nodes of the value).</t>

<t>The query is a root identifier followed by a sequence of zero or more segments, each of
which is applied to the result of the previous root identifier or segment and provides
input to the next segment.
These results and inputs take the form of nodelists.</t>

<t>The nodelist resulting from the root identifier contains a single node,
the query argument.
The nodelist resulting from the last segment is presented as the
result of the query. Depending on the specific API, it might be
presented as an array of the JSON values at the nodes, an array of
Normalized Paths referencing the nodes, or both — or some other
representation as desired by the implementation.
Note that an empty nodelist is a valid query result.</t>

<t>A segment operates on each of the nodes in its input nodelist in turn,
and the resultant nodelists are concatenated in the order of the input
nodelist they were derived from to produce
the result of the segment. A node may be selected more than once and
appears that number of times in the nodelist. Duplicate nodes are not removed.</t>

<t>A syntactically valid segment <bcp14>MUST NOT</bcp14> produce errors when executing the query.
This means that some
operations that might be considered erroneous, such as using an index
lying outside the range of an array,
simply result in fewer nodes being selected.</t>

<t>As a consequence of this approach, if any of the segments produces an empty nodelist,
then the whole query produces an empty nodelist.</t>

<t>If a query may produce a nodelist with more than one possible ordering, a particular implementation
may also produce distinct orderings in successive runs of the query.</t>

</section>
<section anchor="example"><name>Example</name>

<t>Consider this example. With the query argument <spanx style="verb">{"a":[{"b":0},{"b":1},{"c":2}]}</spanx>, the
query <spanx style="verb">$.a[*].b</spanx> selects the following list of nodes: <spanx style="verb">0</spanx>, <spanx style="verb">1</spanx>
(denoted here by their value).</t>

<t>The query consists of <spanx style="verb">$</spanx> followed by three segments: <spanx style="verb">.a</spanx>, <spanx style="verb">[*]</spanx>, and <spanx style="verb">.b</spanx>.</t>

<t>Firstly, <spanx style="verb">$</spanx> produces a nodelist consisting of just the query argument.</t>

<t>Next, <spanx style="verb">.a</spanx> selects from any object input node and selects the
node of any
member value of the input
node corresponding to the member name <spanx style="verb">"a"</spanx>.
The result is again a list of one node: <spanx style="verb">[{"b":0},{"b":1},{"c":2}]</spanx>.</t>

<t>Next, <spanx style="verb">[*]</spanx> selects from any array input node all its elements
(for an object input node, it would select all its member
values, but not the member names).
The result is a list of three nodes: <spanx style="verb">{"b":0}</spanx>, <spanx style="verb">{"b":1}</spanx>, and <spanx style="verb">{"c":2}</spanx>.</t>

<t>Finally, <spanx style="verb">.b</spanx> selects from any object input node with a member name
<spanx style="verb">b</spanx> and selects the node of the member value of the input node corresponding to that name.
The result is a list containing <spanx style="verb">0</spanx>, <spanx style="verb">1</spanx>.
This is the concatenation of three lists, two of length one containing
<spanx style="verb">0</spanx>, <spanx style="verb">1</spanx>, respectively, and one of length zero.</t>

</section>
</section>
<section anchor="root-identifier"><name>Root Identifier</name>

<section numbered="false" toc="exclude" anchor="syntax-1"><name>Syntax</name>

<t>Every JSONPath query (except those inside filter expressions, see <xref target="filter-selector"/>) <bcp14>MUST</bcp14> begin with the root identifier <spanx style="verb">$</spanx>.</t>

<figure><sourcecode type="abnf"><![CDATA[
root-identifier     = "$"
]]></sourcecode></figure>

</section>
<section numbered="false" toc="exclude" anchor="semantics-1"><name>Semantics</name>

<t>The root identifier <spanx style="verb">$</spanx> represents the root node of the query argument
and produces a nodelist consisting of that root node.</t>

</section>
<section numbered="false" toc="exclude" anchor="examples"><name>Examples</name>

<t>JSON:</t>

<figure><sourcecode type="json"><![CDATA[
{"k": "v"}
]]></sourcecode></figure>

<t>Queries:</t>

<texttable title="Root identifier examples" anchor="tbl-root">
      <ttcol align='center'>Query</ttcol>
      <ttcol align='left'>Result</ttcol>
      <ttcol align='center'>Result Path</ttcol>
      <ttcol align='left'>Comment</ttcol>
      <c><spanx style="verb">$</spanx></c>
      <c><spanx style="verb">{"k": "v"}</spanx></c>
      <c><spanx style="verb">$</spanx></c>
      <c>Root node</c>
</texttable>

</section>
</section>
<section anchor="selectors-1"><name>Selectors</name>

<t>Selectors appear only inside <xref target="child-segment">child segments</xref> and
<xref target="descendant-segment">descendant segments</xref>.</t>

<t>A selector produces a nodelist consisting of zero or more children of the input value.</t>

<t>There are various kinds of selectors which produce children of objects, children of arrays,
or children of either objects or arrays.</t>

<figure><sourcecode type="abnf"><![CDATA[
selector            = name-selector  /
                      wildcard-selector /
                      slice-selector /
                      index-selector /
                      filter-selector
]]></sourcecode></figure>

<t>The syntax and semantics of each kind of selector are defined below.</t>

<section anchor="name-selector"><name>Name Selector</name>

<section numbered="false" toc="exclude" anchor="syntax-name"><name>Syntax</name>

<t>A name selector <spanx style="verb">'&lt;name&gt;'</spanx> selects at most one object member value.</t>

<t>In contrast to JSON,
the JSONPath syntax allows strings to be enclosed in <em>single</em> or <em>double</em> quotes.</t>

<figure><sourcecode type="abnf"><![CDATA[
name-selector       = string-literal

string-literal      = %x22 *double-quoted %x22 /     ; "string"
                      %x27 *single-quoted %x27       ; 'string'

double-quoted       = unescaped /
                      %x27      /                    ; '
                      ESC %x22  /                    ; \"
                      ESC escapable

single-quoted       = unescaped /
                      %x22      /                    ; "
                      ESC %x27  /                    ; \'
                      ESC escapable

ESC                 = %x5C                           ; \  backslash

unescaped           = %x20-21 /                      ; see RFC 8259
                         ; omit 0x22 "
                      %x23-26 /
                         ; omit 0x27 '
                      %x28-5B /
                         ; omit 0x5C \
                      %x5D-10FFFF

escapable           = %x62 / ; b BS backspace U+0008
                      %x66 / ; f FF form feed U+000C
                      %x6E / ; n LF line feed U+000A
                      %x72 / ; r CR carriage return U+000D
                      %x74 / ; t HT horizontal tab U+0009
                      "/"  / ; / slash (solidus) U+002F
                      "\"  / ; \ backslash (reverse solidus) U+005C
                      (%x75 hexchar) ;  uXXXX      U+XXXX

hexchar             = non-surrogate /
                      (high-surrogate "\" %x75 low-surrogate)
non-surrogate       = ((DIGIT / "A"/"B"/"C" / "E"/"F") 3HEXDIG) /
                       ("D" %x30-37 2HEXDIG )
high-surrogate      = "D" ("8"/"9"/"A"/"B") 2HEXDIG
low-surrogate       = "D" ("C"/"D"/"E"/"F") 2HEXDIG

HEXDIG              = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"
]]></sourcecode></figure>

<t>Note: <spanx style="verb">double-quoted</spanx> strings follow the JSON string syntax (<xref section="7" sectionFormat="of" target="RFC8259"/>);
<spanx style="verb">single-quoted</spanx> strings follow an analogous pattern (<xref target="syntax-index"/>).
No attempt was made to improve on this syntax, so if it is desired to
escape characters with
scalar values above 0x10000, such as <u format="num-lit-name">🤔</u>,
they need to be represented
by a pair of surrogate escapes (<spanx style="verb">"\uD83E\uDD14"</spanx> in this case).</t>

</section>
<section numbered="false" toc="exclude" anchor="semantics-2"><name>Semantics</name>

<t>A <spanx style="verb">name-selector</spanx> string <bcp14>MUST</bcp14> be converted to a
member name <spanx style="verb">M</spanx> by removing the surrounding quotes and
replacing each escape sequence with its equivalent Unicode character, as
shown in <xref target="tbl-esc"/>:</t>

<texttable title="Escape Sequence Replacements" anchor="tbl-esc">
      <ttcol align='center'>Escape Sequence</ttcol>
      <ttcol align='center'>Unicode Character</ttcol>
      <ttcol align='left'>Description</ttcol>
      <c><spanx style="verb">\b</spanx></c>
      <c>U+0008</c>
      <c>BS backspace</c>
      <c><spanx style="verb">\t</spanx></c>
      <c>U+0009</c>
      <c>HT horizontal tab</c>
      <c><spanx style="verb">\n</spanx></c>
      <c>U+000A</c>
      <c>LF line feed</c>
      <c><spanx style="verb">\f</spanx></c>
      <c>U+000C</c>
      <c>FF form feed</c>
      <c><spanx style="verb">\r</spanx></c>
      <c>U+000D</c>
      <c>CR carriage return</c>
      <c><spanx style="verb">\"</spanx></c>
      <c>U+0022</c>
      <c>quotation mark</c>
      <c><spanx style="verb">\'</spanx></c>
      <c>U+0027</c>
      <c>apostrophe</c>
      <c><spanx style="verb">\/</spanx></c>
      <c>U+002F</c>
      <c>slash (solidus)</c>
      <c><spanx style="verb">\\</spanx></c>
      <c>U+005C</c>
      <c>backslash (reverse solidus)</c>
      <c><spanx style="verb">\uXXXX</spanx></c>
      <c>U+XXXX</c>
      <c>unicode character</c>
</texttable>

<t>Applying the <spanx style="verb">name-selector</spanx> to an object node
selects a member value whose name equals the member name <spanx style="verb">M</spanx>,
or selects nothing if there is no such member value.
Nothing is selected from a value that is not an object.</t>

<t>Note that processing the name selector requires comparing the member name string <spanx style="verb">M</spanx>
with member name strings in the JSON to which the selector is being applied.
Two strings <bcp14>MUST</bcp14> be considered equal if and only if they are identical
sequences of Unicode scalar values. In other words, normalization operations
<bcp14>MUST NOT</bcp14> be applied to either the member name string <spanx style="verb">M</spanx> from the JSONPath or to
the member name strings in the JSON prior to comparison.</t>

</section>
<section numbered="false" toc="exclude" anchor="examples-1"><name>Examples</name>

<!-- EDITING NOTE: There are non-breaking spaces here between j and j -->
<!-- i.e., j j and not j j -->

<t>JSON:</t>

<figure><sourcecode type="json"><![CDATA[
{
  "o": {"j j": {"k.k": 3}},
  "'": {"@": 2}
}
]]></sourcecode></figure>

<t>Queries:</t>

<t>The examples in <xref target="tbl-name"/> show the name selector in use by child segments:</t>

<texttable title="Name selector examples" anchor="tbl-name">
      <ttcol align='center'>Query</ttcol>
      <ttcol align='left'>Result</ttcol>
      <ttcol align='center'>Result Paths</ttcol>
      <ttcol align='left'>Comment</ttcol>
      <c><spanx style="verb">$.o['j j']['k.k']</spanx></c>
      <c><spanx style="verb">3</spanx></c>
      <c><spanx style="verb">$['o']['j j']['k.k']</spanx></c>
      <c>Named value in nested object</c>
      <c><spanx style="verb">$.o["j j"]["k.k"]</spanx></c>
      <c><spanx style="verb">3</spanx></c>
      <c><spanx style="verb">$['o']['j j']['k.k']</spanx></c>
      <c>Named value in nested object</c>
      <c><spanx style="verb">$["'"]["@"]</spanx></c>
      <c><spanx style="verb">2</spanx></c>
      <c><spanx style="verb">$['\'']['@']</spanx></c>
      <c>Unusual member names</c>
</texttable>

</section>
</section>
<section anchor="wildcard-selector"><name>Wildcard Selector</name>

<section numbered="false" toc="exclude" anchor="syntax-2"><name>Syntax</name>

<t>The wildcard selector consists of an asterisk.</t>

<figure><sourcecode type="abnf"><![CDATA[
wildcard-selector   = "*"
]]></sourcecode></figure>

</section>
<section numbered="false" toc="exclude" anchor="semantics-3"><name>Semantics</name>

<t>A <spanx style="verb">wildcard</spanx> selector selects the nodes of all children of an object or array.
The order in which the children of an object appear in the resultant nodelist is not stipulated,
since JSON objects are unordered.
Children of an array appear in array order in the resultant nodelist.</t>

<t>The <spanx style="verb">wildcard</spanx> selector selects nothing from a primitive JSON value (that is,
a number, a string, <spanx style="verb">true</spanx>, <spanx style="verb">false</spanx>, or <spanx style="verb">null</spanx>).</t>

</section>
<section numbered="false" toc="exclude" anchor="examples-2"><name>Examples</name>

<t>JSON:</t>

<figure><sourcecode type="json"><![CDATA[
{
  "o": {"j": 1, "k": 2},
  "a": [5, 3]
}
]]></sourcecode></figure>

<t>Queries:</t>

<t>The examples in <xref target="tbl-wild"/> show the <spanx style="verb">wildcard</spanx> selector in use by a child segment:</t>

<texttable title="Wildcard selector examples" anchor="tbl-wild">
      <ttcol align='center'>Query</ttcol>
      <ttcol align='left'>Result</ttcol>
      <ttcol align='center'>Result Paths</ttcol>
      <ttcol align='left'>Comment</ttcol>
      <c><spanx style="verb">$[*]</spanx></c>
      <c><spanx style="verb">{"j": 1, "k": 2}</spanx> <br /> <spanx style="verb">[5, 3]</spanx></c>
      <c><spanx style="verb">$['o']</spanx> <br /> <spanx style="verb">$['a']</spanx></c>
      <c>Object values</c>
      <c><spanx style="verb">$.o[*]</spanx></c>
      <c><spanx style="verb">1</spanx> <br /> <spanx style="verb">2</spanx></c>
      <c><spanx style="verb">$['o']['j']</spanx> <br /> <spanx style="verb">$['o']['k']</spanx></c>
      <c>Object values</c>
      <c><spanx style="verb">$.o[*]</spanx></c>
      <c><spanx style="verb">2</spanx> <br /> <spanx style="verb">1</spanx></c>
      <c><spanx style="verb">$['o']['k']</spanx> <br /> <spanx style="verb">$['o']['j']</spanx></c>
      <c>Alternative result</c>
      <c><spanx style="verb">$.o[*, *]</spanx></c>
      <c><spanx style="verb">1</spanx> <br /> <spanx style="verb">2</spanx> <br /> <spanx style="verb">2</spanx> <br /> <spanx style="verb">1</spanx></c>
      <c><spanx style="verb">$['o']['j']</spanx> <br /> <spanx style="verb">$['o']['k']</spanx> <br /> <spanx style="verb">$['o']['k']</spanx> <br /> <spanx style="verb">$['o']['j']</spanx></c>
      <c>Non-deterministic ordering</c>
      <c><spanx style="verb">$.a[*]</spanx></c>
      <c><spanx style="verb">5</spanx> <br /> <spanx style="verb">3</spanx></c>
      <c><spanx style="verb">$['a'][0]</spanx> <br /> <spanx style="verb">$['a'][1]</spanx></c>
      <c>Array members</c>
</texttable>

<t>The example above with the query <spanx style="verb">$.o[*, *]</spanx> shows that the wildcard selector may produce nodelists in distinct
orders each time it appears in the child segment, when it is applied to an object node with two or more
members (but not when it is applied to object nodes with fewer than two members or to array nodes).</t>

</section>
</section>
<section anchor="index-selector"><name>Index Selector</name>

<section anchor="syntax-index"><name>Syntax</name>

<t>An index selector <spanx style="verb">&lt;index&gt;</spanx> matches at most one array element value.</t>

<figure><sourcecode type="abnf"><![CDATA[
index-selector      = int                        ; decimal integer

int                 = "0" /
                      (["-"] DIGIT1 *DIGIT)      ; - optional
DIGIT1              = %x31-39                    ; 1-9 non-zero digit
]]></sourcecode></figure>

<t>Applying the numerical <spanx style="verb">index-selector</spanx> selects the corresponding
element. JSONPath allows it to be negative (see <xref target="index-semantics"/>).</t>

<t>To be valid, the index selector value <bcp14>MUST</bcp14> be in the I-JSON
range of exact values, see <xref target="synsem-overview"/>.</t>

<t>Notes:
1. An <spanx style="verb">index-selector</spanx> is an integer (in base 10, as in JSON numbers).
2. As in JSON numbers, the syntax does not allow octal-like integers with leading zeros such as <spanx style="verb">01</spanx> or <spanx style="verb">-01</spanx>.</t>

</section>
<section anchor="index-semantics"><name>Semantics</name>

<t>A non-negative <spanx style="verb">index-selector</spanx> applied to an array selects an array element using a zero-based index.
For example, the selector <spanx style="verb">0</spanx> selects the first and the selector <spanx style="verb">4</spanx> selects the fifth element of a sufficiently long array.
Nothing is selected, and it is not an error, if the index lies outside the range of the array. Nothing is selected from a value that is not an array.</t>

<t>A negative <spanx style="verb">index-selector</spanx> counts from the array end.
For example, the selector <spanx style="verb">-1</spanx> selects the last and the selector <spanx style="verb">-2</spanx> selects the penultimate element of an array with at least two elements.
As with non-negative indexes, it is not an error if such an element does
not exist; this simply means that no element is selected.</t>

</section>
<section anchor="examples-3"><name>Examples</name>

<!-- EDITING NOTE: There are non-breaking spaces here between j and j -->
<!-- i.e., j j and not j j -->

<t>JSON:</t>

<figure><sourcecode type="json"><![CDATA[
["a","b"]
]]></sourcecode></figure>

<t>Queries:</t>

<t>The examples in <xref target="tbl-index"/> show the index selector in use by a child segment.</t>

<texttable title="Index selector examples" anchor="tbl-index">
      <ttcol align='center'>Query</ttcol>
      <ttcol align='left'>Result</ttcol>
      <ttcol align='center'>Result Paths</ttcol>
      <ttcol align='left'>Comment</ttcol>
      <c><spanx style="verb">$[1]</spanx></c>
      <c><spanx style="verb">"b"</spanx></c>
      <c><spanx style="verb">$[1]</spanx></c>
      <c>Element of array</c>
      <c><spanx style="verb">$[-2]</spanx></c>
      <c><spanx style="verb">"a"</spanx></c>
      <c><spanx style="verb">$[0]</spanx></c>
      <c>Element of array, from the end</c>
</texttable>

</section>
</section>
<section anchor="slice"><name>Array Slice selector</name>

<section anchor="syntax-3"><name>Syntax</name>

<t>The array slice selector has the form <spanx style="verb">&lt;start&gt;:&lt;end&gt;:&lt;step&gt;</spanx>.
It matches elements from arrays starting at index <spanx style="verb">&lt;start&gt;</spanx>, ending at — but
not including — <spanx style="verb">&lt;end&gt;</spanx>, while incrementing by <spanx style="verb">step</spanx> with a default of <spanx style="verb">1</spanx>.</t>

<figure><sourcecode type="abnf"><![CDATA[
slice-selector      = [start S] ":" S [end S] [":" [S step ]]

start               = int       ; included in selection
end                 = int       ; not included in selection
step                = int       ; default: 1

B                   = %x20 /    ; Space
                      %x09 /    ; Horizontal tab
                      %x0A /    ; Line feed or New line
                      %x0D      ; Carriage return
S                   = *B        ; optional blank space

]]></sourcecode></figure>

<t>The slice selector consists of three optional decimal integers separated by colons.
The second colon can be omitted when the third integer is.</t>

<t>To be valid, the integers provided <bcp14>MUST</bcp14> be in the I-JSON
range of exact values, see <xref target="synsem-overview"/>.</t>

</section>
<section anchor="semantics-4"><name>Semantics</name>

<t>The slice selector was inspired by the slice operator of ECMAScript
4 (ES4), which was deprecated in 2014, and that of Python.</t>

<section numbered="false" toc="exclude" anchor="informal-introduction"><name>Informal Introduction</name>

<t>This section is informative.</t>

<t>Array slicing is inspired by the behavior of the <spanx style="verb">Array.prototype.slice</spanx> method
of the JavaScript language as defined by the ECMA-262 standard <xref target="ECMA-262"/>,
with the addition of the <spanx style="verb">step</spanx> parameter, which is inspired by the Python slice expression.</t>

<t>The array slice expression <spanx style="verb">start:end:step</spanx> selects elements at indices starting at <spanx style="verb">start</spanx>,
incrementing by <spanx style="verb">step</spanx>, and ending with <spanx style="verb">end</spanx> (which is itself excluded).
So, for example, the expression <spanx style="verb">1:3</spanx> (where <spanx style="verb">step</spanx> defaults to <spanx style="verb">1</spanx>)
selects elements with indices <spanx style="verb">1</spanx> and <spanx style="verb">2</spanx> (in that order) whereas
<spanx style="verb">1:5:2</spanx> selects elements with indices <spanx style="verb">1</spanx> and <spanx style="verb">3</spanx>.</t>

<t>When <spanx style="verb">step</spanx> is negative, elements are selected in reverse order. Thus,
for example, <spanx style="verb">5:1:-2</spanx> selects elements with indices <spanx style="verb">5</spanx> and <spanx style="verb">3</spanx>, in
that order and <spanx style="verb">::-1</spanx> selects all the elements of an array in
reverse order.</t>

<t>When <spanx style="verb">step</spanx> is <spanx style="verb">0</spanx>, no elements are selected.
(This is the one case that differs from the behavior of Python, which
raises an error in this case.)</t>

<t>The following section specifies the behavior fully, without depending on
JavaScript or Python behavior.</t>

</section>
<section numbered="false" toc="exclude" anchor="normative-semantics"><name>Normative Semantics</name>

<t>A slice expression selects a subset of the elements of the input array, in
the same order
as the array or the reverse order, depending on the sign of the <spanx style="verb">step</spanx> parameter.
It selects no nodes from a node that is not an array.</t>

<t>A slice is defined by the two slice parameters, <spanx style="verb">start</spanx> and <spanx style="verb">end</spanx>, and
an iteration delta, <spanx style="verb">step</spanx>.
Each of these parameters is
optional. In the rest of this section, <spanx style="verb">len</spanx> denotes the length of the input array.</t>

<t>The default value for <spanx style="verb">step</spanx> is <spanx style="verb">1</spanx>.
The default values for <spanx style="verb">start</spanx> and <spanx style="verb">end</spanx> depend on the sign of <spanx style="verb">step</spanx>,
as shown in <xref target="tbl-slice-start-end"/>:</t>

<texttable title="Default array slice start and end values" anchor="tbl-slice-start-end">
      <ttcol align='left'>Condition</ttcol>
      <ttcol align='left'>start</ttcol>
      <ttcol align='left'>end</ttcol>
      <c>step &gt;= 0</c>
      <c>0</c>
      <c>len</c>
      <c>step &lt; 0</c>
      <c>len - 1</c>
      <c>-len - 1</c>
</texttable>

<t>Slice expression parameters <spanx style="verb">start</spanx> and <spanx style="verb">end</spanx> are not directly usable
as slice bounds and must first be normalized.
Normalization for this purpose is defined as:</t>

<figure><sourcecode type="pseudocode"><![CDATA[
FUNCTION Normalize(i, len):
  IF i >= 0 THEN
    RETURN i
  ELSE
    RETURN len + i
  END IF
]]></sourcecode></figure>

<t>The result of the array index expression <spanx style="verb">i</spanx> applied to an array
of length <spanx style="verb">len</spanx> is the result of the array
slicing expression <spanx style="verb">Normalize(i, len):Normalize(i, len)+1:1</spanx>.</t>

<t>Slice expression parameters <spanx style="verb">start</spanx> and <spanx style="verb">end</spanx> are used to derive slice bounds <spanx style="verb">lower</spanx> and <spanx style="verb">upper</spanx>.
The direction of the iteration, defined
by the sign of <spanx style="verb">step</spanx>, determines which of the parameters is the lower bound and which
is the upper bound:</t>

<figure><sourcecode type="pseudocode"><![CDATA[
FUNCTION Bounds(start, end, step, len):
  n_start = Normalize(start, len)
  n_end = Normalize(end, len)

  IF step >= 0 THEN
    lower = MIN(MAX(n_start, 0), len)
    upper = MIN(MAX(n_end, 0), len)
  ELSE
    upper = MIN(MAX(n_start, -1), len-1)
    lower = MIN(MAX(n_end, -1), len-1)
  END IF

  RETURN (lower, upper)
]]></sourcecode></figure>

<t>The slice expression selects elements with indices between the lower and
upper bounds.
In the following pseudocode, <spanx style="verb">a(i)</spanx> is the <spanx style="verb">i+1</spanx>th element of the array <spanx style="verb">a</spanx>
(i.e., <spanx style="verb">a(0)</spanx> is the first element, <spanx style="verb">a(1)</spanx> the second, and so forth).</t>

<figure><sourcecode type="pseudocode"><![CDATA[
IF step > 0 THEN

  i = lower
  WHILE i < upper:
    SELECT a(i)
    i = i + step
  END WHILE

ELSE if step < 0 THEN

  i = upper
  WHILE lower < i:
    SELECT a(i)
    i = i + step
  END WHILE

END IF
]]></sourcecode></figure>

<t>When <spanx style="verb">step = 0</spanx>, no elements are selected and the result array is empty.</t>

</section>
</section>
<section anchor="examples-4"><name>Examples</name>

<t>JSON:</t>

<figure><sourcecode type="json"><![CDATA[
["a", "b", "c", "d", "e", "f", "g"]
]]></sourcecode></figure>

<t>Queries:</t>

<t>The examples in <xref target="tbl-slice"/> show the array slice selector in use by a child segment:</t>

<texttable title="Array slice selector examples" anchor="tbl-slice">
      <ttcol align='center'>Query</ttcol>
      <ttcol align='left'>Result</ttcol>
      <ttcol align='center'>Result Paths</ttcol>
      <ttcol align='left'>Comment</ttcol>
      <c><spanx style="verb">$[1:3]</spanx></c>
      <c><spanx style="verb">"b"</spanx> <br /> <spanx style="verb">"c"</spanx></c>
      <c><spanx style="verb">$[1]</spanx> <br /> <spanx style="verb">$[2]</spanx></c>
      <c>Slice with default step</c>
      <c><spanx style="verb">$[5:]</spanx></c>
      <c><spanx style="verb">"f"</spanx> <br /> <spanx style="verb">"g"</spanx></c>
      <c><spanx style="verb">$[5]</spanx> <br /> <spanx style="verb">$[6]</spanx></c>
      <c>Slice with no end index</c>
      <c><spanx style="verb">$[1:5:2]</spanx></c>
      <c><spanx style="verb">"b"</spanx> <br /> <spanx style="verb">"d"</spanx></c>
      <c><spanx style="verb">$[1]</spanx> <br /> <spanx style="verb">$[3]</spanx></c>
      <c>Slice with step 2</c>
      <c><spanx style="verb">$[5:1:-2]</spanx></c>
      <c><spanx style="verb">"f"</spanx> <br /> <spanx style="verb">"d"</spanx></c>
      <c><spanx style="verb">$[5]</spanx> <br /> <spanx style="verb">$[3]</spanx></c>
      <c>Slice with negative step</c>
      <c><spanx style="verb">$[::-1]</spanx></c>
      <c><spanx style="verb">"g"</spanx> <br /> <spanx style="verb">"f"</spanx> <br /> <spanx style="verb">"e"</spanx> <br /> <spanx style="verb">"d"</spanx> <br /> <spanx style="verb">"c"</spanx> <br /> <spanx style="verb">"b"</spanx> <br /> <spanx style="verb">"a"</spanx></c>
      <c><spanx style="verb">$[6]</spanx> <br /> <spanx style="verb">$[5]</spanx> <br /> <spanx style="verb">$[4]</spanx> <br /> <spanx style="verb">$[3]</spanx> <br /> <spanx style="verb">$[2]</spanx> <br /> <spanx style="verb">$[1]</spanx> <br /> <spanx style="verb">$[0]</spanx></c>
      <c>Slice in reverse order</c>
</texttable>

</section>
</section>
<section anchor="filter-selector"><name>Filter selector</name>

<t>Filter selectors are used to iterate over the elements or members of
structured values, i.e., JSON arrays and objects.
The structured values are identified in the nodelist offered by the
child or descendant segment using the filter selector.</t>

<t>For each iteration (element/member), a logical expression, the <em>filter expression</em>,
is evaluated which decides whether the node of
the element/member is selected.
(While a logical expression evaluates to what mathematically is a
Boolean value, this specification uses the term <em>logical</em> to maintain a distinction from
the Boolean values that JSON can represent.)</t>

<t>During the iteration process, the filter expression receives the node
of each array element or object member value of the structured value being
filtered; this element or member value is then known as the <em>current node</em>.</t>

<t>The current node can be used as the start of one or more JSONPath
queries in subexpressions of the filter expression, notated
via the current-node-identifier <spanx style="verb">@</spanx>.
Each JSONPath query can be used either for testing existence of a
result of the query, for obtaining a specific JSON value resulting
from that query that can then be used in a comparison, or as a
<em>function argument</em>.</t>

<t>Filter selectors may use function extensions, which are covered in <xref target="fnex"/>.
Within the logical expression for a filter selector, function
expressions can be used to operate on nodelists and values.
The set of available functions is extensible, with a number of
functions predefined, see <xref target="fnex"/>, and the ability to register further
functions provided by the Function Extensions sub-registry (<xref target="iana-fnex"/>).
When a function is defined, it is given a unique name, and its return value and each of its parameters is given a
<em>declared type</em>.
The type system is limited in scope; its purpose is to express
restrictions that, without functions, are implicit in the grammar of
filter expressions.
The type system also guides conversions (<xref target="type-conv"/>) that mimic the
way different kinds of expressions are handled in the grammar when
function expressions are not in use.</t>

<section anchor="syntax-4"><name>Syntax</name>

<t>The filter selector has the form <spanx style="verb">?&lt;logical-expr&gt;</spanx>.</t>

<figure><sourcecode type="abnf"><![CDATA[
filter-selector     = "?" S logical-expr
]]></sourcecode></figure>

<t>As the filter expression is composed of side-effect free constituents,
the order of evaluation does not need to be (and is not) defined.
Similarly, for conjunction (<spanx style="verb">&amp;&amp;</spanx>) and disjunction (<spanx style="verb">||</spanx>) (defined later),
both a short-circuiting and a fully evaluating
implementation will lead to the same result; both implementation
strategies are therefore valid.</t>

<t>The current node is accessible via the current node identifier <spanx style="verb">@</spanx>.
This identifier addresses the current node of the filter-selector that
is directly enclosing the identifier; note that within nested
filter-selectors, there is no syntax to address the current node of
any other than the directly enclosing filter-selector (i.e., of
filter-selectors enclosing the filter-selector that is directly
enclosing the identifier).</t>

<t>Logical expressions offer the usual Boolean operators (<spanx style="verb">||</spanx> for OR,
<spanx style="verb">&amp;&amp;</spanx> for AND, and <spanx style="verb">!</spanx> for NOT).
They have the normal semantics of Boolean algebra and obey its laws
(see, for example, <xref target="BOOLEAN-LAWS"/>).
Parentheses <bcp14>MAY</bcp14> be used within <spanx style="verb">logical-expr</spanx> for grouping.</t>

<figure><sourcecode type="abnf"><![CDATA[
logical-expr        = logical-or-expr
logical-or-expr     = logical-and-expr *(S "||" S logical-and-expr)
                        ; disjunction
                        ; binds less tightly than conjunction
logical-and-expr    = basic-expr *(S "&&" S basic-expr)
                        ; conjunction
                        ; binds more tightly than disjunction

basic-expr          = paren-expr /
                      comparison-expr /
                      test-expr

paren-expr          = [logical-not-op S] "(" S logical-expr S ")"
                                        ; parenthesized expression
logical-not-op      = "!"               ; logical NOT operator
]]></sourcecode></figure>

<t>A test expression
either tests the existence of a node
designated by an embedded query (see <xref target="extest"/>) or tests the
result of a function expression (see <xref target="fnex"/>).
In the latter case, if the function's declared result type is
<spanx style="verb">LogicalType</spanx> (see <xref target="typesys"/>), it tests whether the result
is <spanx style="verb">LogicalTrue</spanx>; if the function's declared result type is
<spanx style="verb">NodesType</spanx>, it tests whether the result is non-empty.
If the function's declared result type is <spanx style="verb">ValueType</spanx>, its use in a
test expression is not well typed (see <xref target="well-typedness"/>).</t>

<figure><sourcecode type="abnf"><![CDATA[
test-expr           = [logical-not-op S]
                     (filter-query / ; existence/non-existence
                      function-expr) ; LogicalType or
                                     ; NodesType
filter-query        = rel-query / jsonpath-query
rel-query           = current-node-identifier segments
current-node-identifier = "@"
]]></sourcecode></figure>

<t>Comparison expressions are available for comparisons between primitive
values (that is, numbers, strings, <spanx style="verb">true</spanx>, <spanx style="verb">false</spanx>, and <spanx style="verb">null</spanx>).
These can be obtained via literal values; singular queries, each of
which selects at most one node the value of which is then used; or
function expressions (see <xref target="fnex"/>) of type <spanx style="verb">ValueType</spanx>.</t>

<figure><sourcecode type="abnf"><![CDATA[
comparison-expr     = comparable S comparison-op S comparable
literal             = number / string-literal /
                      true / false / null
comparable          = literal /
                      singular-query / ; singular query value
                      function-expr    ; ValueType
comparison-op       = "==" / "!=" /
                      "<=" / ">=" /
                      "<"  / ">"

singular-query      = rel-singular-query / abs-singular-query
rel-singular-query  = current-node-identifier singular-query-segments
abs-singular-query  = root-identifier singular-query-segments
singular-query-segments = *(S (name-segment / index-segment))
name-segment        = ("[" name-selector "]") /
                      ("." member-name-shorthand)
index-segment       = "[" index-selector "]"
]]></sourcecode></figure>

<t>Literals can be notated in the way that is usual for JSON (with the
extension that strings can use single-quote delimiters).
Alphabetic characters in ABNF are case-insensitive, so within a
floating point number the ABNF expression "e" can be either the value
'e' or 'E'.</t>

<t><spanx style="verb">true</spanx>, <spanx style="verb">false</spanx>, and <spanx style="verb">null</spanx> are lower-case only (case-sensitive).</t>

<figure><sourcecode type="abnf"><![CDATA[
number              = (int / "-0") [ frac ] [ exp ] ; decimal number
frac                = "." 1*DIGIT                  ; decimal fraction
exp                 = "e" [ "-" / "+" ] 1*DIGIT    ; decimal exponent
true                = %x74.72.75.65                ; true
false               = %x66.61.6c.73.65             ; false
null                = %x6e.75.6c.6c                ; null
]]></sourcecode></figure>

<t><xref target="tbl-prec"/> lists filter expression operators in order of precedence from highest (binds most tightly) to lowest (binds least tightly).</t>

<!-- FIXME: Should the syntax column be split between unary and binary operators? -->

<texttable title="Filter expression operator precedence" anchor="tbl-prec">
      <ttcol align='center'>Precedence</ttcol>
      <ttcol align='center'>Operator type</ttcol>
      <ttcol align='center'>Syntax</ttcol>
      <c>5</c>
      <c>Grouping</c>
      <c><spanx style="verb">(...)</spanx></c>
      <c>4</c>
      <c>Logical NOT</c>
      <c><spanx style="verb">!</spanx></c>
      <c>3</c>
      <c>Relations</c>
      <c><spanx style="verb">==</spanx> <spanx style="verb">!=</spanx><br /><spanx style="verb">&lt;</spanx> <spanx style="verb">&lt;=</spanx> <spanx style="verb">&gt;</spanx> <spanx style="verb">&gt;=</spanx></c>
      <c>2</c>
      <c>Logical AND</c>
      <c><spanx style="verb">&amp;&amp;</spanx></c>
      <c>1</c>
      <c>Logical OR</c>
      <c><spanx style="verb">¦¦</spanx></c>
</texttable>

</section>
<section anchor="semantics-5"><name>Semantics</name>

<t>The filter selector works with arrays and objects exclusively. Its result is a list of <em>zero</em>, <em>one</em>, <em>multiple</em> or <em>all</em> of their array elements or member values, respectively.
Applied to primitive values, it selects nothing.</t>

<t>In the resultant nodelist, children of an array are ordered by their position in the array.
The order in which the children of an object (as opposed to an array)
appear in the resultant nodelist is not stipulated,
since JSON objects are unordered.</t>

<section anchor="extest"><name>Existence Tests</name>

<t>A query by itself in a logical context is an existence test which yields true if the query selects at least one node and yields false if the query does not select any nodes.</t>

<t>Existence tests differ from comparisons in that:</t>

<t><list style="symbols">
  <t>they work with arbitrary relative or absolute queries (not just singular queries).</t>
  <t>they work with queries that select structured values.</t>
</list></t>

<t>To examine the value of a node selected by a query, an explicit comparison is necessary.
For example, to test whether the node selected by the query <spanx style="verb">@.foo</spanx> has the value <spanx style="verb">null</spanx>, use <spanx style="verb">@.foo == null</spanx> (see <xref target="null-semantics"/>)
rather than the negated existence test <spanx style="verb">!@.foo</spanx> (which yields false if <spanx style="verb">@.foo</spanx> selects a node, regardless of the node's value).</t>

</section>
<section anchor="comparisons"><name>Comparisons</name>

<t>The comparison operators <spanx style="verb">==</spanx> and <spanx style="verb">&lt;</spanx> are defined first and then these are used to define <spanx style="verb">!=</spanx>, <spanx style="verb">&lt;=</spanx>, <spanx style="verb">&gt;</spanx>, and <spanx style="verb">&gt;=</spanx>.</t>

<t>When either side of a comparison results in an empty nodelist or <spanx style="verb">Nothing</spanx>:</t>

<t><list style="symbols">
  <t>a comparison using the operator <spanx style="verb">==</spanx> yields true if and only the other side also results in an empty nodelist or <spanx style="verb">Nothing</spanx>.</t>
  <t>a comparison using the operator <spanx style="verb">&lt;</spanx> yields false.</t>
</list></t>

<t>When any query or function expression on either side of a comparison results in a nodelist consisting of a single node, that side is
replaced by the value of its node and then:</t>

<t><list style="symbols">
  <t>a comparison using the operator <spanx style="verb">==</spanx> yields true if and only if the comparison
is between:
  <list style="symbols">
      <t>numbers expected to interoperate as per <xref section="2.2" sectionFormat="of" target="RFC7493">I-JSON</xref> that compare equal using normal mathematical equality,</t>
      <t>numbers at least one of which is not expected to interoperate as per I-JSON, where the numbers compare equal using an implementation specific equality,</t>
      <t>equal primitive values which are not numbers,</t>
      <t>equal arrays, that is arrays of the same length where each element of the first array is equal to the corresponding
element of the second array, or</t>
      <t>equal objects with no duplicate names, that is where:
      <list style="symbols">
          <t>both objects have the same collection of names (with no duplicates), and</t>
          <t>for each of those names, the values associated with the name by the objects are equal.</t>
        </list></t>
    </list></t>
  <t>a comparison using the operator <spanx style="verb">&lt;</spanx> yields true if and only if
the comparison is between values which are both numbers or both strings and which satisfy the comparison:  <list style="symbols">
      <t>numbers expected to interoperate as per <xref section="2.2" sectionFormat="of" target="RFC7493">I-JSON</xref> <bcp14>MUST</bcp14> compare using the normal mathematical ordering;
numbers not expected to interoperate as per I-JSON <bcp14>MAY</bcp14> compare using an implementation specific ordering</t>
      <t>the empty string compares less than any non-empty string</t>
      <t>a non-empty string compares less than another non-empty string if and only if the first string starts with a
lower Unicode scalar value than the second string or if both strings start with the same Unicode scalar value and
the remainder of the first string compares less than the remainder of the second string.</t>
    </list></t>
</list></t>

<t>Note that comparisons using the operator <spanx style="verb">&lt;</spanx> yield false if either value being
compared is an object, array, boolean, or <spanx style="verb">null</spanx>.</t>

<t><spanx style="verb">!=</spanx>, <spanx style="verb">&lt;=</spanx>, <spanx style="verb">&gt;</spanx>, and <spanx style="verb">&gt;=</spanx> are defined in terms of the other comparison operators. For any <spanx style="verb">a</spanx> and <spanx style="verb">b</spanx>:</t>

<t><list style="symbols">
  <t>The comparison <spanx style="verb">a != b</spanx> yields true if and only if <spanx style="verb">a == b</spanx> yields false.</t>
  <t>The comparison <spanx style="verb">a &lt;= b</spanx> yields true if and only if <spanx style="verb">a &lt; b</spanx> yields true or <spanx style="verb">a == b</spanx> yields true.</t>
  <t>The comparison <spanx style="verb">a &gt; b</spanx> yields true if and only if <spanx style="verb">b &lt; a</spanx> yields true.</t>
  <t>The comparison <spanx style="verb">a &gt;= b</spanx> yields true if and only if <spanx style="verb">b &lt; a</spanx> yields true or <spanx style="verb">a == b</spanx> yields true.</t>
</list></t>

</section>
</section>
<section anchor="examples-5"><name>Examples</name>

<t>The first set of examples shows some comparison expressions and their
result with a given JSON value as input.</t>

<t>JSON:</t>

<figure><sourcecode type="json"><![CDATA[
{
  "obj": {"x": "y"},
  "arr": [2, 3]
}
]]></sourcecode></figure>

<t>Comparisons:</t>

<texttable title="Comparison examples" anchor="tbl-comparison">
      <ttcol align='center'>Comparison</ttcol>
      <ttcol align='center'>Result</ttcol>
      <ttcol align='center'>Comment</ttcol>
      <c><spanx style="verb">$.absent1 == $.absent2</spanx></c>
      <c>true</c>
      <c>Empty nodelists</c>
      <c><spanx style="verb">$.absent1 &lt;= $.absent2</spanx></c>
      <c>true</c>
      <c><spanx style="verb">==</spanx> implies <spanx style="verb">&lt;=</spanx></c>
      <c><spanx style="verb">$.absent == 'g'</spanx></c>
      <c>false</c>
      <c>Empty nodelist</c>
      <c><spanx style="verb">$.absent1 != $.absent2</spanx></c>
      <c>false</c>
      <c>Empty nodelists</c>
      <c><spanx style="verb">$.absent != 'g'</spanx></c>
      <c>true</c>
      <c>Empty nodelist</c>
      <c><spanx style="verb">1 &lt;= 2</spanx></c>
      <c>true</c>
      <c>Numeric comparison</c>
      <c><spanx style="verb">1 &gt; 2</spanx></c>
      <c>false</c>
      <c>Strict, numeric comparison</c>
      <c><spanx style="verb">13 == '13'</spanx></c>
      <c>false</c>
      <c>Type mismatch</c>
      <c><spanx style="verb">'a' &lt;= 'b'</spanx></c>
      <c>true</c>
      <c>String comparison</c>
      <c><spanx style="verb">'a' &gt; 'b'</spanx></c>
      <c>false</c>
      <c>Strict, string comparison</c>
      <c><spanx style="verb">$.obj == $.arr</spanx></c>
      <c>false</c>
      <c>Type mismatch</c>
      <c><spanx style="verb">$.obj != $.arr</spanx></c>
      <c>true</c>
      <c>Type mismatch</c>
      <c><spanx style="verb">$.obj == $.obj</spanx></c>
      <c>true</c>
      <c>Object comparison</c>
      <c><spanx style="verb">$.obj != $.obj</spanx></c>
      <c>false</c>
      <c>Object comparison</c>
      <c><spanx style="verb">$.arr == $.arr</spanx></c>
      <c>true</c>
      <c>Array comparison</c>
      <c><spanx style="verb">$.arr != $.arr</spanx></c>
      <c>false</c>
      <c>Array comparison</c>
      <c><spanx style="verb">$.obj == 17</spanx></c>
      <c>false</c>
      <c>Type mismatch</c>
      <c><spanx style="verb">$.obj != 17</spanx></c>
      <c>true</c>
      <c>Type mismatch</c>
      <c><spanx style="verb">$.obj &lt;= $.arr</spanx></c>
      <c>false</c>
      <c>Objects and arrays are not ordered</c>
      <c><spanx style="verb">$.obj &lt; $.arr</spanx></c>
      <c>false</c>
      <c>Objects and arrays are not ordered</c>
      <c><spanx style="verb">$.obj &lt;= $.obj</spanx></c>
      <c>true</c>
      <c><spanx style="verb">==</spanx> implies <spanx style="verb">&lt;=</spanx></c>
      <c><spanx style="verb">$.arr &lt;= $.arr</spanx></c>
      <c>true</c>
      <c><spanx style="verb">==</spanx> implies <spanx style="verb">&lt;=</spanx></c>
      <c><spanx style="verb">1 &lt;= $.arr</spanx></c>
      <c>false</c>
      <c>Arrays are not ordered</c>
      <c><spanx style="verb">1 &gt;= $.arr</spanx></c>
      <c>false</c>
      <c>Arrays are not ordered</c>
      <c><spanx style="verb">1 &gt; $.arr</spanx></c>
      <c>false</c>
      <c>Arrays are not ordered</c>
      <c><spanx style="verb">1 &lt; $.arr</spanx></c>
      <c>false</c>
      <c>Arrays are not ordered</c>
      <c><spanx style="verb">true &lt;= true</spanx></c>
      <c>true</c>
      <c><spanx style="verb">==</spanx> implies <spanx style="verb">&lt;=</spanx></c>
      <c><spanx style="verb">true &gt; true</spanx></c>
      <c>false</c>
      <c>Booleans are not ordered</c>
</texttable>

<t>The second set of examples shows some complete JSONPath queries that make use
of filter selectors, and the results of evaluating these queries on a
given JSON value as input.
(Note that two of the queries employ function extensions; please see
Sections <xref format="counter" target="match"/> and <xref format="counter" target="search"/> below for details about these.)</t>

<t>JSON:</t>

<figure><sourcecode type="json"><![CDATA[
{
  "a": [3, 5, 1, 2, 4, 6, {"b": "j"}, {"b": "k"},
        {"b": {}}, {"b": "kilo"}],
  "o": {"p": 1, "q": 2, "r": 3, "s": 5, "t": {"u": 6}},
  "e": "f"
}
]]></sourcecode></figure>

<t>Queries:</t>

<t>The examples in <xref target="tbl-filter"/> show the filter selector in use by a child segment:</t>

<texttable title="Filter selector examples" anchor="tbl-filter">
      <ttcol align='center'>Query</ttcol>
      <ttcol align='left'>Result</ttcol>
      <ttcol align='center'>Result Paths</ttcol>
      <ttcol align='left'>Comment</ttcol>
      <c><spanx style="verb">$.a[?@.b == 'kilo']</spanx></c>
      <c><spanx style="verb">{"b": "kilo"}</spanx></c>
      <c><spanx style="verb">$['a'][9]</spanx></c>
      <c>Member value comparison</c>
      <c><spanx style="verb">$.a[?@&gt;3.5]</spanx></c>
      <c><spanx style="verb">5</spanx> <br /> <spanx style="verb">4</spanx> <br /> <spanx style="verb">6</spanx></c>
      <c><spanx style="verb">$['a'][1]</spanx> <br /> <spanx style="verb">$['a'][4]</spanx> <br /> <spanx style="verb">$['a'][5]</spanx></c>
      <c>Array value comparison</c>
      <c><spanx style="verb">$.a[?@.b]</spanx></c>
      <c><spanx style="verb">{"b": "j"}</spanx> <br /> <spanx style="verb">{"b": "k"}</spanx> <br /> <spanx style="verb">{"b": {}}</spanx> <br /> <spanx style="verb">{"b": "kilo"}</spanx></c>
      <c><spanx style="verb">$['a'][6]</spanx> <br /> <spanx style="verb">$['a'][7]</spanx> <br /> <spanx style="verb">$['a'][8]</spanx> <br /> <spanx style="verb">$['a'][9]</spanx></c>
      <c>Array value existence</c>
      <c><spanx style="verb">$[?@.*]</spanx></c>
      <c><spanx style="verb">[3, 5, 1, 2, 4, 6, {"b": "j"}, {"b": "k"}, {"b": {}}, {"b": "kilo"}]</spanx> <br /> <spanx style="verb">{"p": 1, "q": 2, "r": 3, "s": 5, "t": {"u": 6}}</spanx></c>
      <c><spanx style="verb">$['a']</spanx> <br /> <spanx style="verb">$['o']</spanx></c>
      <c>Existence of non-singular queries</c>
      <c><spanx style="verb">$[?@[?@.b]]</spanx></c>
      <c><spanx style="verb">[3, 5, 1, 2, 4, 6, {"b": "j"}, {"b": "k"}, {"b": {}}, {"b": "kilo"}]</spanx></c>
      <c><spanx style="verb">$['a']</spanx></c>
      <c>Nested filters</c>
      <c><spanx style="verb">$.o[?@&lt;3, ?@&lt;3]</spanx></c>
      <c><spanx style="verb">1</spanx> <br /> <spanx style="verb">2</spanx> <br /> <spanx style="verb">2</spanx> <br /> <spanx style="verb">1</spanx></c>
      <c><spanx style="verb">$['o']['p']</spanx> <br /> <spanx style="verb">$['o']['q']</spanx> <br /> <spanx style="verb">$['o']['q']</spanx> <br /> <spanx style="verb">$['o']['p']</spanx></c>
      <c>Non-deterministic ordering</c>
      <c><spanx style="verb">$.a[?@&lt;2 || @.b == "k"]</spanx></c>
      <c><spanx style="verb">1</spanx> <br /> <spanx style="verb">{"b": "k"}</spanx></c>
      <c><spanx style="verb">$['a'][2]</spanx> <br /> <spanx style="verb">$['a'][7]</spanx></c>
      <c>Array value logical OR</c>
      <c><spanx style="verb">$.a[?match(@.b, "[jk]")]</spanx></c>
      <c><spanx style="verb">{"b": "j"}</spanx> <br /> <spanx style="verb">{"b": "k"}</spanx></c>
      <c><spanx style="verb">$['a'][6]</spanx> <br /> <spanx style="verb">$['a'][7]</spanx></c>
      <c>Array value regular expression match</c>
      <c><spanx style="verb">$.a[?search(@.b, "[jk]")]</spanx></c>
      <c><spanx style="verb">{"b": "j"}</spanx> <br /> <spanx style="verb">{"b": "k"}</spanx> <br /> <spanx style="verb">{"b": "kilo"}</spanx></c>
      <c><spanx style="verb">$['a'][6]</spanx> <br /> <spanx style="verb">$['a'][7]</spanx> <br /> <spanx style="verb">$['a'][9]</spanx></c>
      <c>Array value regular expression search</c>
      <c><spanx style="verb">$.o[?@&gt;1 &amp;&amp; @&lt;4]</spanx></c>
      <c><spanx style="verb">2</spanx> <br /> <spanx style="verb">3</spanx></c>
      <c><spanx style="verb">$['o']['q']</spanx> <br /> <spanx style="verb">$['o']['r']</spanx></c>
      <c>Object value logical AND</c>
      <c><spanx style="verb">$.o[?@&gt;1 &amp;&amp; @&lt;4]</spanx></c>
      <c><spanx style="verb">3</spanx> <br /> <spanx style="verb">2</spanx></c>
      <c><spanx style="verb">$['o']['r']</spanx> <br /> <spanx style="verb">$['o']['q']</spanx></c>
      <c>Alternative result</c>
      <c><spanx style="verb">$.o[?@.u || @.x]</spanx></c>
      <c><spanx style="verb">{"u": 6}</spanx></c>
      <c><spanx style="verb">$['o']['t']</spanx></c>
      <c>Object value logical OR</c>
      <c><spanx style="verb">$.a[?(@.b == $.x)]</spanx></c>
      <c><spanx style="verb">3</spanx> <br /> <spanx style="verb">5</spanx> <br /> <spanx style="verb">1</spanx> <br /> <spanx style="verb">2</spanx> <br /> <spanx style="verb">4</spanx> <br /> <spanx style="verb">6</spanx></c>
      <c><spanx style="verb">$['a'][0]</spanx> <br /><spanx style="verb">$['a'][1]</spanx> <br /> <spanx style="verb">$['a'][2]</spanx> <br /> <spanx style="verb">$['a'][3]</spanx> <br /> <spanx style="verb">$['a'][4]</spanx> <br /> <spanx style="verb">$['a'][5]</spanx></c>
      <c>Comparison of queries with no values</c>
      <c><spanx style="verb">$.a[?(@ == @)]</spanx></c>
      <c><spanx style="verb">3</spanx> <br /> <spanx style="verb">5</spanx> <br /> <spanx style="verb">1</spanx> <br /> <spanx style="verb">2</spanx> <br /> <spanx style="verb">4</spanx> <br /> <spanx style="verb">6</spanx> <br /> <spanx style="verb">{"b": "j"}</spanx> <br /> <spanx style="verb">{"b": "k"}</spanx> <br /> <spanx style="verb">{"b": {}}</spanx> <br /> <spanx style="verb">{"b": "kilo"}</spanx></c>
      <c><spanx style="verb">$['a'][0]</spanx> <br /> <spanx style="verb">$['a'][1]</spanx> <br /><spanx style="verb">$['a'][2]</spanx> <br /><spanx style="verb">$['a'][3]</spanx> <br /><spanx style="verb">$['a'][4]</spanx> <br /><spanx style="verb">$['a'][5]</spanx> <br /><spanx style="verb">$['a'][6]</spanx> <br /><spanx style="verb">$['a'][7]</spanx> <br /><spanx style="verb">$['a'][8]</spanx> <br /><spanx style="verb">$['a'][9]</spanx></c>
      <c>Comparisons of primitive and of structured values</c>
</texttable>

<t>The example above with the query <spanx style="verb">$.o[?@&lt;3, ?@&lt;3]</spanx> shows that a filter selector may produce nodelists in distinct
orders each time it appears in the child segment.</t>

</section>
</section>
</section>
<section anchor="fnex"><name>Function Extensions</name>

<t>Beyond the filter expression functionality defined in the preceding
subsections, JSONPath defines an extension point that can be used to
add filter expression functionality: "Function Extensions".</t>

<t>This section defines the extension point as well as some function
extensions that use this extension point.
While these mechanisms are designed to use the extension point,
they are an integral part of the JSONPath specification and are
expected to be implemented like any other integral part of this
specification.</t>

<t>A function extension defines a registered name (see <xref target="iana-fnex"/>) that
can be applied to a sequence of zero or more arguments, producing a
result. Each registered function name is unique.</t>

<t>A function extension <bcp14>MUST</bcp14> be defined such that its evaluation is
side-effect free, i.e., all possible orders of evaluation and choices
of short-circuiting or full evaluation of an expression containing it
must lead to the same result.
(Note that memoization or logging are not side effects in this sense
as they are visible at the implementation level only — they do not
influence the result of the evaluation.)</t>

<figure><sourcecode type="abnf"><![CDATA[
function-name       = function-name-first *function-name-char
function-name-first = LCALPHA
function-name-char  = function-name-first / "_" / DIGIT
LCALPHA             = %x61-7A  ; "a".."z"

function-expr       = function-name "(" S [function-argument
                         *(S "," S function-argument)] S ")"
function-argument   = literal /
                      filter-query / ; (includes singular-query)
                      logical-expr /
                      function-expr
]]></sourcecode></figure>

<t>Any function expressions in a query must be well formed (by conforming to the above ABNF)
and well typed,
otherwise the JSONPath implementation <bcp14>MUST</bcp14> raise an error
(see <xref target="synsem-overview"/>).
To define which function expressions are well typed,
a type system is first introduced.</t>

<section anchor="typesys"><name>Type System for Function Expressions</name>

<t>Each parameter as well as the result of a function extension must have a declared type.</t>

<t>Declared types enable checking a JSONPath query for well-typedness
independent of any query argument the JSONPath query is applied to.</t>

<t><xref target="tbl-types"/> defines the available types in terms of the instances they contain.</t>

<texttable title="Function extension type system" anchor="tbl-types">
      <ttcol align='left'>Type</ttcol>
      <ttcol align='left'>Instances</ttcol>
      <c><spanx style="verb">ValueType</spanx></c>
      <c>JSON values or <spanx style="verb">Nothing</spanx></c>
      <c><spanx style="verb">LogicalType</spanx></c>
      <c><spanx style="verb">LogicalTrue</spanx> or <spanx style="verb">LogicalFalse</spanx></c>
      <c><spanx style="verb">NodesType</spanx></c>
      <c>Nodelists</c>
</texttable>

<t>Notes:</t>

<t><list style="symbols">
  <t>The only instances that can be directly represented in JSONPath syntax are certain JSON values
in <spanx style="verb">ValueType</spanx> expressed as literals (which, in JSONPath, are limited to primitive values).</t>
  <t><spanx style="verb">Nothing</spanx> represents the absence of a JSON value and is distinct from any JSON value, including <spanx style="verb">null</spanx>.</t>
  <t><spanx style="verb">LogicalTrue</spanx> and <spanx style="verb">LogicalFalse</spanx> are unrelated to the JSON values expressed by the
literals <spanx style="verb">true</spanx> and <spanx style="verb">false</spanx>.</t>
</list></t>

</section>
<section anchor="type-conv"><name>Type Conversion</name>

<t>Just as queries can be used in logical expressions by testing for the
existence of at least one node (<xref target="extest"/>), a function expression of
declared type <spanx style="verb">NodesType</spanx> can be used as a function argument for a
parameter of declared type <spanx style="verb">LogicalType</spanx>, with the equivalent conversion rule:</t>

<t><list style="symbols">
  <t>If the nodelist contains one or more nodes, the conversion result is <spanx style="verb">LogicalTrue</spanx>.</t>
  <t>If the nodelist is empty, the conversion result is <spanx style="verb">LogicalFalse</spanx>.</t>
</list></t>

<t>Extraction of a value from a nodelist can be performed in several
ways, so an implicit conversion from <spanx style="verb">NodesType</spanx> to <spanx style="verb">ValueType</spanx>
may be surprising and has therefore not been defined.
A function expression with a declared type of <spanx style="verb">NodesType</spanx> can
indirectly be used as an argument for a parameter of declared type
<spanx style="verb">ValueType</spanx> by wrapping the expression in a call to a function
extension such as "value" (see <xref target="value"/>).</t>

<t>The well-typedness of function expressions can now be defined in terms of this type system.</t>

</section>
<section anchor="well-typedness"><name>Well-Typedness of Function Expressions</name>

<t>For a function expression to be well typed:</t>

<t><list style="numbers">
  <t>its declared type must be well typed in the context in which it occurs, and</t>
  <t>its arguments must be well typed for the declared type of the corresponding parameters.</t>
</list></t>

<t>(1) As per the grammar, a function expression can occur in three different
immediate contexts, which lead to the following conditions for well-typedness:</t>

<dl newline="true">
  <dt>As a <spanx style="verb">test-expr</spanx> in a logical expression:</dt>
  <dd>
    <t>The function's declared result type is <spanx style="verb">LogicalType</spanx>, or
(giving rise to conversion as per <xref target="type-conv"/>) <spanx style="verb">NodesType</spanx>.</t>
  </dd>
  <dt>As a <spanx style="verb">comparable</spanx> in a comparison:</dt>
  <dd>
    <t>The function's declared result type is <spanx style="verb">ValueType</spanx>.</t>
  </dd>
  <dt>As a <spanx style="verb">function-argument</spanx> in another function expression:</dt>
  <dd>
    <t>The function's declared result type fulfills the following rules for
the corresponding parameter of the enclosing function.</t>
  </dd>
</dl>

<t>(2) The arguments of the function expression are well typed when
each argument of the function can be used for the declared type of the
corresponding parameter, according to one of the following
conditions:</t>

<t><list style="symbols">
  <t>When the argument is a function expression with declared result type the same as the
declared type of the parameter.</t>
  <t>When the declared type of the parameter is <spanx style="verb">LogicalType</spanx> and the argument is one of the following:
  <list style="symbols">
      <t>A function expression with declared result type <spanx style="verb">NodesType</spanx>.
In this case the argument is converted to LogicalType as per <xref target="type-conv"/>.</t>
      <t>A <spanx style="verb">logical-expr</spanx> that is not a function expression.</t>
    </list></t>
  <t>When the declared type of the parameter is <spanx style="verb">NodesType</spanx> and the argument is a query
(which includes singular query).</t>
  <t>When the declared type of the parameter is <spanx style="verb">ValueType</spanx> and the argument is one of the following:
  <list style="symbols">
      <t>A value expressed as a literal.</t>
      <t>A singular query. In this case:
      <list style="symbols">
          <t>If the query results in a nodelist consisting of a single node, the
argument is the value of the node.</t>
          <t>If the query results in an empty nodelist, the argument is Nothing.</t>
        </list></t>
    </list></t>
</list></t>

</section>
<section anchor="length"><name><spanx style="verb">length</spanx> Function Extension</name>

<dl>
  <dt>Parameters:</dt>
  <dd>
    <t><list style="numbers">
      <t><spanx style="verb">ValueType</spanx></t>
    </list></t>
  </dd>
  <dt>Result:</dt>
  <dd>
    <t><spanx style="verb">ValueType</spanx> (unsigned integer or <spanx style="verb">Nothing</spanx>)</t>
  </dd>
</dl>

<t>The "length" function extension provides a way to compute the length
of a value and make that available for further processing in the
filter expression:</t>

<figure><sourcecode type="JSONPath"><![CDATA[
$[?length(@.authors) >= 5]
]]></sourcecode></figure>

<t>Its only argument is an instance of <spanx style="verb">ValueType</spanx> (possibly taken from a
singular query, as in the example above).  The result also is an
instance of <spanx style="verb">ValueType</spanx>: an unsigned integer or <spanx style="verb">Nothing</spanx>.</t>

<t><list style="symbols">
  <t>If the argument value is a string, the result is the number of
Unicode scalar values in the string.</t>
  <t>If the argument value is an array, the result is the number of
elements in the array.</t>
  <t>If the argument value is an object, the result is the number of
members in the object.</t>
  <t>For any other argument value, the result is <spanx style="verb">Nothing</spanx>.</t>
</list></t>

</section>
<section anchor="count"><name><spanx style="verb">count</spanx> Function Extension</name>

<dl>
  <dt>Parameters:</dt>
  <dd>
    <t><list style="numbers">
      <t><spanx style="verb">NodesType</spanx></t>
    </list></t>
  </dd>
  <dt>Result:</dt>
  <dd>
    <t><spanx style="verb">ValueType</spanx> (unsigned integer)</t>
  </dd>
</dl>

<t>The "count" function extension provides a way to obtain the number of
nodes in a nodelist and make that available for further processing in
the filter expression:</t>

<figure><sourcecode type="JSONPath"><![CDATA[
$[?count(@.*.author) >= 5]
]]></sourcecode></figure>

<t>Its only argument is a nodelist.
The result is a value, an unsigned integer, that gives the number of
nodes in the nodelist.
Note that there is no deduplication of the nodelist.</t>

</section>
<section anchor="match"><name><spanx style="verb">match</spanx> Function Extension</name>

<dl>
  <dt>Parameters:</dt>
  <dd>
    <t><list style="numbers">
      <t><spanx style="verb">ValueType</spanx> (string)</t>
      <t><spanx style="verb">ValueType</spanx> (string conforming to <xref target="I-D.draft-ietf-jsonpath-iregexp"/>)</t>
    </list></t>
  </dd>
  <dt>Result:</dt>
  <dd>
    <t><spanx style="verb">LogicalType</spanx></t>
  </dd>
</dl>

<t>The "match" function extension provides a way to check whether (the
entirety of, see <xref target="search"/> below) a given
string matches a given regular expression, which is in <xref target="I-D.draft-ietf-jsonpath-iregexp"/> form.</t>

<figure><sourcecode type="JSONPath"><![CDATA[
$[?match(@.date, "1974-05-..")]
]]></sourcecode></figure>

<t>Its arguments are instances of <spanx style="verb">ValueType</spanx> (possibly taken from a
singular query, as for the first argument in the example above).
If the first argument is not a string or the second argument is not a
string conforming to <xref target="I-D.draft-ietf-jsonpath-iregexp"/>, the result is <spanx style="verb">LogicalFalse</spanx>.
Otherwise, the string that is the first argument is matched against
the iregexp contained in the string that is the second argument;
the result is <spanx style="verb">LogicalTrue</spanx> if the string matches the iregexp and
<spanx style="verb">LogicalFalse</spanx> otherwise.</t>

</section>
<section anchor="search"><name><spanx style="verb">search</spanx> Function Extension</name>

<dl>
  <dt>Parameters:</dt>
  <dd>
    <t><list style="numbers">
      <t><spanx style="verb">ValueType</spanx> (string)</t>
      <t><spanx style="verb">ValueType</spanx> (string conforming to <xref target="I-D.draft-ietf-jsonpath-iregexp"/>)</t>
    </list></t>
  </dd>
  <dt>Result:</dt>
  <dd>
    <t><spanx style="verb">LogicalType</spanx></t>
  </dd>
</dl>

<t>The "search" function extension provides a way to check whether a
given string contains a substring that matches a given regular
expression, which is in <xref target="I-D.draft-ietf-jsonpath-iregexp"/> form.</t>

<figure><sourcecode type="JSONPath"><![CDATA[
$[?search(@.author, "[BR]ob")]
]]></sourcecode></figure>

<t>Its arguments are instances of <spanx style="verb">ValueType</spanx> (possibly taken from a
singular query, as for the first argument in the example above).
If the first argument is not a string or the second argument is not a
string conforming to <xref target="I-D.draft-ietf-jsonpath-iregexp"/>, the result is <spanx style="verb">LogicalFalse</spanx>.
Otherwise, the string that is the first argument is searched for at
least one substring that matches the iregexp contained in the string
that is the second argument; the result is <spanx style="verb">LogicalTrue</spanx> if such a
substring exists and <spanx style="verb">LogicalFalse</spanx> otherwise.</t>

</section>
<section anchor="value"><name><spanx style="verb">value</spanx> Function Extension</name>

<dl>
  <dt>Parameters:</dt>
  <dd>
    <t><list style="numbers">
      <t><spanx style="verb">NodesType</spanx></t>
    </list></t>
  </dd>
  <dt>Result:</dt>
  <dd>
    <t><spanx style="verb">ValueType</spanx></t>
  </dd>
</dl>

<t>The "value" function extension provides a way to convert an instance of <spanx style="verb">NodesType</spanx> to a value and
make that available for further processing in the filter expression:</t>

<figure><sourcecode type="JSONPath"><![CDATA[
$[?value(@..color) == "red"]
]]></sourcecode></figure>

<t>Its only argument is an instance of <spanx style="verb">NodesType</spanx> (possibly taken from a
<spanx style="verb">filter-query</spanx>, as in the example above).  The result is an
instance of <spanx style="verb">ValueType</spanx>.</t>

<t><list style="symbols">
  <t>If the argument contains a single node, the result is
the value of the node.</t>
  <t>If the argument is <spanx style="verb">Nothing</spanx> or contains multiple nodes, the
result is <spanx style="verb">Nothing</spanx>.</t>
</list></t>

<t>Note: a singular query may be used anywhere where a ValueType is expected,
so there is no need to use the "value" function extension with a singular query.</t>

</section>
<section anchor="examples-6"><name>Examples</name>

<texttable title="Function expression examples" anchor="tbl-function-expr">
      <ttcol align='center'>Query</ttcol>
      <ttcol align='left'>Comment</ttcol>
      <c><spanx style="verb">$[?length(@) &lt; 3]</spanx></c>
      <c>well typed</c>
      <c><spanx style="verb">$[?length(@.*) &lt; 3]</spanx></c>
      <c>not well typed since <spanx style="verb">@.*</spanx> is a non-singular query</c>
      <c><spanx style="verb">$[?count(@.*) == 1]</spanx></c>
      <c>well typed</c>
      <c><spanx style="verb">$[?count(1) == 1]</spanx></c>
      <c>not well typed since <spanx style="verb">1</spanx> is not a query or function expression</c>
      <c><spanx style="verb">$[?count(foo(@.*)) == 1]</spanx></c>
      <c>well typed, where <spanx style="verb">foo</spanx> is a function extension with a parameter of type <spanx style="verb">NodesType</spanx> and result type <spanx style="verb">NodesType</spanx></c>
      <c><spanx style="verb">$[?match(@.timezone, 'Europe/.*')]</spanx></c>
      <c>well typed</c>
      <c><spanx style="verb">$[?match(@.timezone, 'Europe/.*') == true]</spanx></c>
      <c>not well typed as <spanx style="verb">LogicalType</spanx> may not be used in comparisons</c>
      <c><spanx style="verb">$[?value(@..color) == "red"]</spanx></c>
      <c>well typed</c>
      <c><spanx style="verb">$[?value(@..color)]</spanx></c>
      <c>not well typed as <spanx style="verb">ValueType</spanx> may not be used in a test expression</c>
      <c><spanx style="verb">$[?bar(@.a)]</spanx></c>
      <c>well typed for any function <spanx style="verb">bar</spanx> with a parameter of any declared type and result type <spanx style="verb">LogicalType</spanx></c>
      <c><spanx style="verb">$[?bnl(@.*)]</spanx></c>
      <c>well typed for any function <spanx style="verb">bnl</spanx> with a parameter of declared type <spanx style="verb">NodesType</spanx> or <spanx style="verb">LogicalType</spanx> and result type <spanx style="verb">LogicalType</spanx></c>
      <c><spanx style="verb">$[?blt(1==1)]</spanx></c>
      <c>well typed, where <spanx style="verb">blt</spanx> is a function with a parameter of declared type <spanx style="verb">LogicalType</spanx> and result type <spanx style="verb">LogicalType</spanx></c>
      <c><spanx style="verb">$[?blt(1)]</spanx></c>
      <c>not well typed for the same function <spanx style="verb">blt</spanx>, as <spanx style="verb">1</spanx> is not a query, <spanx style="verb">logical-expr</spanx>, or function expression</c>
      <c><spanx style="verb">$[?bal(1)]</spanx></c>
      <c>well typed, where <spanx style="verb">bal</spanx> is a function with a parameter of declared type <spanx style="verb">ValueType</spanx> and result type <spanx style="verb">LogicalType</spanx></c>
</texttable>

</section>
</section>
<section anchor="segments-details"><name>Segments</name>

<t>For each node in an input nodelist,
segments apply one or more selectors to the node and concatenate the
results of each selector into per-input-node nodelists, which are then
concatenated in the order of the input nodelist to form a single
segment result nodelist.</t>

<t>It turns out that the more segments there are in a query, the greater the depth in the input value of the
nodes of the resultant nodelist:</t>

<t><list style="symbols">
  <t>A query with N segments, where N &gt;= 0, produces a nodelist
consisting of nodes at depth in the input value of N or greater.</t>
  <t>A query with N segments, where N &gt;= 0, all of which are <xref target="child-segment">child segments</xref>,
produces a nodelist consisting of nodes precisely at depth N in the input value.</t>
</list></t>

<t>There are two kinds of segment: child segments and descendant segments.</t>

<figure><sourcecode type="abnf"><![CDATA[
segment             = child-segment / descendant-segment
]]></sourcecode></figure>

<t>The syntax and semantics of each kind of segment are defined below.</t>

<section anchor="child-segment"><name>Child Segment</name>

<section numbered="false" toc="exclude" anchor="syntax-5"><name>Syntax</name>

<t>The child segment consists of a non-empty, comma-separated
sequence of selectors enclosed in square brackets.</t>

<t>Shorthand notations are also provided for when there is a single
wildcard or name selector.</t>

<figure><sourcecode type="abnf"><![CDATA[
child-segment       = bracketed-selection /
                      ("."
                       (wildcard-selector /
                        member-name-shorthand))

bracketed-selection = "[" S selector *(S "," S selector) S "]"

member-name-shorthand = name-first *name-char
name-first          = ALPHA /
                      "_"   /
                      %x80-10FFFF   ; any non-ASCII Unicode character
name-char           = DIGIT / name-first

DIGIT               = %x30-39              ; 0-9
ALPHA               = %x41-5A / %x61-7A    ; A-Z / a-z
]]></sourcecode></figure>

<t><spanx style="verb">.*</spanx>, a <spanx style="verb">child-segment</spanx> directly built from a <spanx style="verb">wildcard-selector</spanx>, is
shorthand for <spanx style="verb">[*]</spanx>.</t>

<t><spanx style="verb">.&lt;member-name&gt;</spanx>, a <spanx style="verb">child-segment</spanx> built from a
 <spanx style="verb">member-name-shorthand</spanx>, is shorthand for <spanx style="verb">['&lt;member-name&gt;']</spanx>.
Note that this can only be used with member names that are composed of certain
characters, as specified in the ABNF rule <spanx style="verb">member-name-shorthand</spanx>.
Thus, for example, <spanx style="verb">$.foo.bar</spanx> is shorthand for <spanx style="verb">$['foo']['bar']</spanx> (but not for <spanx style="verb">$['foo.bar']</spanx>).</t>

</section>
<section numbered="false" toc="exclude" anchor="semantics-6"><name>Semantics</name>

<t>A child segment contains a sequence of selectors, each of which
selects zero or more children of the input value.</t>

<t>Selectors of different kinds may be combined within a single child segment.</t>

<t>For each node in the input nodelist,
the resulting nodelist of a child segment is the concatenation of
the nodelists from each of its selectors in the order that the selectors
appear in the list.
Note that any node matched by more than one selector is kept
as many times in the nodelist.</t>

<t>Where a selector can produce a nodelist in more than one possible order,
each occurrence of the selector in the child segment
may evaluate to produce a nodelist in a distinct order.</t>

<t>So a child segment drills down one more level into the structure of the input value.</t>

</section>
<section numbered="false" toc="exclude" anchor="examples-7"><name>Examples</name>

<t>JSON:</t>

<figure><sourcecode type="json"><![CDATA[
["a", "b", "c", "d", "e", "f", "g"]
]]></sourcecode></figure>

<t>Queries:</t>

<texttable title="Child segment examples" anchor="tbl-child-segment">
      <ttcol align='center'>Query</ttcol>
      <ttcol align='left'>Result</ttcol>
      <ttcol align='center'>Result Paths</ttcol>
      <ttcol align='left'>Comment</ttcol>
      <c><spanx style="verb">$[0, 3]</spanx></c>
      <c><spanx style="verb">"a"</spanx> <br /> <spanx style="verb">"d"</spanx></c>
      <c><spanx style="verb">$[0]</spanx> <br /> <spanx style="verb">$[3]</spanx></c>
      <c>Indices</c>
      <c><spanx style="verb">$[0:2, 5]</spanx></c>
      <c><spanx style="verb">"a"</spanx> <br /> <spanx style="verb">"b"</spanx> <br /> <spanx style="verb">"f"</spanx></c>
      <c><spanx style="verb">$[0]</spanx> <br /> <spanx style="verb">$[1]</spanx> <br /> <spanx style="verb">$[5]</spanx></c>
      <c>Slice and index</c>
      <c><spanx style="verb">$[0, 0]</spanx></c>
      <c><spanx style="verb">"a"</spanx> <br /> <spanx style="verb">"a"</spanx></c>
      <c><spanx style="verb">$[0]</spanx> <br /> <spanx style="verb">$[0]</spanx></c>
      <c>Duplicated entries</c>
</texttable>

</section>
</section>
<section anchor="descendant-segment"><name>Descendant Segment</name>

<section numbered="false" toc="exclude" anchor="syntax-6"><name>Syntax</name>

<t>The descendant segment consists of a double dot <spanx style="verb">..</spanx>
followed by a child segment (using bracket notation).</t>

<t>Shortand notations are also provided that correspond to the shorthand forms of the child segment.</t>

<figure><sourcecode type="abnf"><![CDATA[
descendant-segment  = ".." (bracketed-selection /
                            wildcard-selector /
                            member-name-shorthand)
]]></sourcecode></figure>

<t><spanx style="verb">..*</spanx>, the <spanx style="verb">descendant-segment</spanx> directly built from a
<spanx style="verb">wildcard-selector</spanx>, is shorthand for <spanx style="verb">..[*]</spanx>.</t>

<t><spanx style="verb">..&lt;member-name&gt;</spanx>, a <spanx style="verb">descendant-segment</spanx> built from a
<spanx style="verb">member-name-shorthand</spanx>, is shorthand for <spanx style="verb">..['&lt;member-name&gt;']</spanx>.
As with the similar shorthand of a <spanx style="verb">child-segment</spanx>, note that this can
only be used with member names that are composed of certain
characters, as specified in the ABNF rule <spanx style="verb">member-name-shorthand</spanx>.</t>

<t>Note that <spanx style="verb">..</spanx> on its own is not a valid segment.</t>

</section>
<section numbered="false" toc="exclude" anchor="semantics-7"><name>Semantics</name>

<t>A descendant segment produces zero or more descendants of an input value.</t>

<t>For each node in the input nodelist,
a descendant selector visits the input node and each of
its descendants such that:</t>

<t><list style="symbols">
  <t>nodes of any array are visited in array order, and</t>
  <t>nodes are visited before their descendants.</t>
</list></t>

<t>The order in which the children of an object are visited is not stipulated, since
JSON objects are unordered.</t>

<t>Suppose the descendant segment is of the form <spanx style="verb">..[&lt;selectors&gt;]</spanx> (after converting any shorthand
form to bracket notation)
and the nodes, in the order visited, are <spanx style="verb">D1</spanx>, ..., <spanx style="verb">Dn</spanx> (where <spanx style="verb">n &gt;= 1</spanx>).
Note that <spanx style="verb">D1</spanx> is the input value.</t>

<t>For each <spanx style="verb">i</spanx> such that <spanx style="verb">1 &lt;= i &lt;= n</spanx>, the nodelist <spanx style="verb">Ri</spanx> is defined to be a result of applying
the child segment <spanx style="verb">[&lt;selectors&gt;]</spanx> to the node <spanx style="verb">Di</spanx>.</t>

<t>For each node in the input nodelist,
the result of the descendant segment is the concatenation of <spanx style="verb">R1</spanx>,
..., <spanx style="verb">Rn</spanx> (in that order).
These results are then concatenated in input nodelist order to form
the result of the segment.</t>

<t>So a descendant segment drills down one or more levels into the structure of each input value.</t>

</section>
<section numbered="false" toc="exclude" anchor="examples-8"><name>Examples</name>

<t>JSON:</t>

<figure><sourcecode type="json"><![CDATA[
{
  "o": {"j": 1, "k": 2},
  "a": [5, 3, [{"j": 4}, {"k": 6}]]
}
]]></sourcecode></figure>

<t>Queries:</t>

<texttable title="Descendant segment examples" anchor="tbl-descendant-segment">
      <ttcol align='center'>Query</ttcol>
      <ttcol align='left'>Result</ttcol>
      <ttcol align='center'>Result Paths</ttcol>
      <ttcol align='left'>Comment</ttcol>
      <c><spanx style="verb">$..j</spanx></c>
      <c><spanx style="verb">1</spanx> <br /> <spanx style="verb">4</spanx></c>
      <c><spanx style="verb">$['o']['j']</spanx> <br /> <spanx style="verb">$['a'][2][0]['j']</spanx></c>
      <c>Object values</c>
      <c><spanx style="verb">$..j</spanx></c>
      <c><spanx style="verb">4</spanx> <br /> <spanx style="verb">1</spanx></c>
      <c><spanx style="verb">$['a'][2][0]['j']</spanx> <br /> <spanx style="verb">$['o']['j']</spanx></c>
      <c>Alternative result</c>
      <c><spanx style="verb">$..[0]</spanx></c>
      <c><spanx style="verb">5</spanx> <br /> <spanx style="verb">{"j": 4}</spanx></c>
      <c><spanx style="verb">$['a'][0]</spanx> <br /> <spanx style="verb">$['a'][2][0]</spanx></c>
      <c>Array values</c>
      <c><spanx style="verb">$..[*]</spanx> <br /> <spanx style="verb">$..*</spanx></c>
      <c><spanx style="verb">{"j": 1, "k" : 2}</spanx> <br /> <spanx style="verb">[5, 3, [{"j": 4}, {"k": 6}]]</spanx> <br /> <spanx style="verb">1</spanx> <br /> <spanx style="verb">2</spanx> <br /> <spanx style="verb">5</spanx> <br /> <spanx style="verb">3</spanx> <br /> <spanx style="verb">[{"j": 4}, {"k": 6}]</spanx> <br /> <spanx style="verb">{"j": 4}</spanx> <br /> <spanx style="verb">{"k": 6}</spanx> <br /> <spanx style="verb">4</spanx> <br /> <spanx style="verb">6</spanx></c>
      <c><spanx style="verb">$['o']</spanx> <br /> <spanx style="verb">$['a']</spanx> <br /> <spanx style="verb">$['o']['j']</spanx> <br /> <spanx style="verb">$['o']['k']</spanx> <br /> <spanx style="verb">$['a'][0]</spanx> <br /> <spanx style="verb">$['a'][1]</spanx> <br /> <spanx style="verb">$['a'][2]</spanx> <br /> <spanx style="verb">$['a'][2][0]</spanx> <br /> <spanx style="verb">$['a'][2][1]</spanx> <br /> <spanx style="verb">$['a'][2][0]['j']</spanx> <br /> <spanx style="verb">$['a'][2][1]['k']</spanx></c>
      <c>All values</c>
      <c><spanx style="verb">$..o</spanx></c>
      <c><spanx style="verb">{"j": 1, "k": 2}</spanx></c>
      <c><spanx style="verb">$['o']</spanx></c>
      <c>Input value is visited</c>
      <c><spanx style="verb">$.o..[*, *]</spanx></c>
      <c><spanx style="verb">1</spanx> <br /> <spanx style="verb">2</spanx> <br /> <spanx style="verb">2</spanx> <br /> <spanx style="verb">1</spanx></c>
      <c><spanx style="verb">$['o']['j']</spanx> <br /> <spanx style="verb">$['o']['k']</spanx> <br /> <spanx style="verb">$['o']['k']</spanx> <br /> <spanx style="verb">$['o']['j']</spanx></c>
      <c>Non-deterministic ordering</c>
      <c><spanx style="verb">$.a..[0, 1]</spanx></c>
      <c><spanx style="verb">5</spanx> <br /> <spanx style="verb">3</spanx> <br /> <spanx style="verb">{"j": 4}</spanx> <br /> <spanx style="verb">{"k": 6}</spanx></c>
      <c><spanx style="verb">$['a'][0]</spanx> <br /> <spanx style="verb">$['a'][1]</spanx> <br /> <spanx style="verb">$['a'][2][0]</spanx> <br /> <spanx style="verb">$['a'][2][1]</spanx></c>
      <c>Multiple segments</c>
</texttable>

<t>Note: The ordering of the results for the <spanx style="verb">$..[*]</spanx> and <spanx style="verb">$..*</spanx> examples above is not guaranteed, except that:</t>

<t><list style="symbols">
  <t><spanx style="verb">{"j": 1, "k": 2}</spanx> must appear before <spanx style="verb">1</spanx> and <spanx style="verb">2</spanx>,</t>
  <t><spanx style="verb">[5, 3, [{"j": 4}, {"k": 6}]]</spanx> must appear before <spanx style="verb">5</spanx>, <spanx style="verb">3</spanx>, and <spanx style="verb">[{"j": 4}, {"k": 6}]</spanx>,</t>
  <t><spanx style="verb">5</spanx> must appear before <spanx style="verb">3</spanx> which must appear before <spanx style="verb">[{"j": 4}, {"k": 6}]</spanx>,</t>
  <t><spanx style="verb">5</spanx> and <spanx style="verb">3</spanx> must appear before <spanx style="verb">{"j": 4}</spanx>, <spanx style="verb">4</spanx>, <spanx style="verb">, {"k": 6}</spanx>, and <spanx style="verb">6</spanx>,</t>
  <t><spanx style="verb">[{"j": 4}, {"k": 6}]</spanx> must appear before <spanx style="verb">{"j": 4}</spanx> and <spanx style="verb">{"k": 6}</spanx>,</t>
  <t><spanx style="verb">{"j": 4}</spanx> must appear before <spanx style="verb">{"k": 6}</spanx>,</t>
  <t><spanx style="verb">{"k": 6}</spanx> must appear before <spanx style="verb">4</spanx>, and</t>
  <t><spanx style="verb">4</spanx> must appear before <spanx style="verb">6</spanx>.</t>
</list></t>

<t>The example above with the query <spanx style="verb">$.o..[*, *]</spanx> shows that a selector may produce nodelists in distinct orders
each time it appears in the descendant segment.</t>

<t>The example above with the query <spanx style="verb">$.a..[0, 1]</spanx> shows that the child segment <spanx style="verb">[0, 1]</spanx> is applied to each node
in turn (rather than the nodes being visited once per selector, which is the case for some JSONPath implementations
that do not conform to this specification).</t>

</section>
</section>
</section>
<section anchor="null-semantics"><name>Semantics of <spanx style="verb">null</spanx></name>

<t>Note that JSON <spanx style="verb">null</spanx> is treated the same as any other JSON value: it is not taken to mean "undefined" or "missing".</t>

<section numbered="false" toc="exclude" anchor="examples-9"><name>Examples</name>

<t>JSON:</t>

<figure><sourcecode type="json"><![CDATA[
{"a": null, "b": [null], "c": [{}], "null": 1}
]]></sourcecode></figure>

<t>Queries:</t>

<texttable title="Examples involving (or not involving) null" anchor="tbl-null-examples">
      <ttcol align='center'>Query</ttcol>
      <ttcol align='left'>Result</ttcol>
      <ttcol align='center'>Result Paths</ttcol>
      <ttcol align='left'>Comment</ttcol>
      <c><spanx style="verb">$.a</spanx></c>
      <c><spanx style="verb">null</spanx></c>
      <c><spanx style="verb">$['a']</spanx></c>
      <c>Object value</c>
      <c><spanx style="verb">$.a[0]</spanx></c>
      <c>&#160;</c>
      <c>&#160;</c>
      <c><spanx style="verb">null</spanx> used as array</c>
      <c><spanx style="verb">$.a.d</spanx></c>
      <c>&#160;</c>
      <c>&#160;</c>
      <c><spanx style="verb">null</spanx> used as object</c>
      <c><spanx style="verb">$.b[0]</spanx></c>
      <c><spanx style="verb">null</spanx></c>
      <c><spanx style="verb">$['b'][0]</spanx></c>
      <c>Array value</c>
      <c><spanx style="verb">$.b[*]</spanx></c>
      <c><spanx style="verb">null</spanx></c>
      <c><spanx style="verb">$['b'][0]</spanx></c>
      <c>Array value</c>
      <c><spanx style="verb">$.b[?@]</spanx></c>
      <c><spanx style="verb">null</spanx></c>
      <c><spanx style="verb">$['b'][0]</spanx></c>
      <c>Existence</c>
      <c><spanx style="verb">$.b[?@==null]</spanx></c>
      <c><spanx style="verb">null</spanx></c>
      <c><spanx style="verb">$['b'][0]</spanx></c>
      <c>Comparison</c>
      <c><spanx style="verb">$.c[?(@.d==null)]</spanx></c>
      <c>&#160;</c>
      <c>&#160;</c>
      <c>Comparison with "missing" value</c>
      <c><spanx style="verb">$.null</spanx></c>
      <c><spanx style="verb">1</spanx></c>
      <c><spanx style="verb">$['null']</spanx></c>
      <c>Not JSON null at all, just a member name string</c>
</texttable>

</section>
</section>
<section anchor="normalized-paths"><name>Normalized Paths</name>

<t>A Normalized Path is a unique representation of the location of a node in a value which
uniquely identifies the node in the value.
Specifically, a Normalized Path is a JSONPath query with restricted syntax (defined below),
e.g., <spanx style="verb">$['book'][3]</spanx>, which when applied to the value results in a nodelist consisting
of just the node identified by the Normalized Path.
Note that a Normalized Path represents the identity of a node <em>in a specific value</em>.
There is precisely one Normalized Path identifying any particular node in a value.</t>

<t>A nodelist may be represented compactly in JSON as an array of strings, where the strings are
Normalized Paths.</t>

<t>Normalized Paths provide a predictable format that simplifies testing and post-processing
of nodelists, e.g., to remove duplicate nodes.
Normalized Paths are used in this document as result paths in examples.</t>

<t>Normalized Paths use the canonical bracket notation, rather than dot notation.</t>

<t>Single quotes are used in Normalized Paths to delimit string member names. This reduces the
number of characters that need escaping when Normalized Paths appear in double quote-delimited
strings, e.g., in JSON texts.</t>

<t>Certain characters are escaped in Normalized Paths, in one and only one way; all other
characters are unescaped.</t>

<t>Note: Normalized Paths are singular queries, but not all singular queries are Normalized Paths.
For example, <spanx style="verb">$[-3]</spanx> is a singular query, but is not a Normalized Path.
The Normalized Path equivalent to <spanx style="verb">$[-3]</spanx> would have an index equal to the array length minus <spanx style="verb">3</spanx>.
(The array length must be at least <spanx style="verb">3</spanx> if <spanx style="verb">$[-3]</spanx> is to identify a node.)</t>

<figure><sourcecode type="abnf"><![CDATA[
normalized-path      = root-identifier *(normal-index-segment)
normal-index-segment = "[" normal-selector "]"
normal-selector      = normal-name-selector / normal-index-selector
normal-name-selector = %x27 *normal-single-quoted %x27 ; 'string'
normal-single-quoted = normal-unescaped /
                       ESC normal-escapable
normal-unescaped     =    ; omit %x0-1F control codes
                       %x20-26 /
                          ; omit 0x27 '
                       %x28-5B /
                          ; omit 0x5C \
                       %x5D-10FFFF
normal-escapable     = %x62 / ; b BS backspace U+0008
                       %x66 / ; f FF form feed U+000C
                       %x6E / ; n LF line feed U+000A
                       %x72 / ; r CR carriage return U+000D
                       %x74 / ; t HT horizontal tab U+0009
                       "'" /  ; ' apostrophe U+0027
                       "\" /  ; \ backslash (reverse solidus) U+005C
                       (%x75 normal-hexchar)
                                       ; certain values u00xx U+00XX
normal-hexchar       = "0" "0"
                       (
                          ("0" %x30-37) / ; "00"-"07"
                             ; omit U+0008-U+000A BS HT LF
                          ("0" %x62) /    ; "0b"
                             ; omit U+000C-U+000D FF CR
                          ("0" %x65-66) / ; "0e"-"0f"
                          ("1" normal-HEXDIG)
                        )
normal-HEXDIG        = DIGIT / %x61-66    ; "0"-"9", "a"-"f"
normal-index-selector = "0" / (DIGIT1 *DIGIT)
                        ; non-negative decimal integer
]]></sourcecode></figure>

<t>Since there can only be one Normalized Path identifying a given node, the syntax
stipulates which characters are escaped and which are not.
So the definition of <spanx style="verb">normal-hexchar</spanx> is designed for hex escaping of characters
which are not straightforwardly-printable, for example U+000B LINE TABULATION, but
for which no standard JSON escape, such as <spanx style="verb">\n</spanx>, is available.</t>

<section numbered="false" toc="exclude" anchor="examples-10"><name>Examples</name>

<texttable title="Normalized Path examples" anchor="tbl-normalized-path-examples">
      <ttcol align='center'>Path</ttcol>
      <ttcol align='center'>Normalized Path</ttcol>
      <ttcol align='left'>Comment</ttcol>
      <c><spanx style="verb">$.a</spanx></c>
      <c><spanx style="verb">$['a']</spanx></c>
      <c>Object value</c>
      <c><spanx style="verb">$[1]</spanx></c>
      <c><spanx style="verb">$[1]</spanx></c>
      <c>Array index</c>
      <c><spanx style="verb">$[-3]</spanx></c>
      <c><spanx style="verb">$[2]</spanx></c>
      <c>Negative array index for an array of length 5</c>
      <c><spanx style="verb">$.a.b[1:2]</spanx></c>
      <c><spanx style="verb">$['a']['b'][1]</spanx></c>
      <c>Nested structure</c>
      <c><spanx style="verb">$["\u000B"]</spanx></c>
      <c><spanx style="verb">$['\u000b']</spanx></c>
      <c>Unicode escape</c>
      <c><spanx style="verb">$["\u0061"]</spanx></c>
      <c><spanx style="verb">$['a']</spanx></c>
      <c>Unicode character</c>
</texttable>

</section>
</section>
</section>
<section anchor="IANA"><name>IANA Considerations</name>

<section anchor="registration-of-media-type-applicationjsonpath"><name>Registration of Media Type application/jsonpath</name>

<t>IANA is requested to register the following media type <xref target="RFC6838"/>:</t>

<dl>
  <dt>Type name:</dt>
  <dd>
    <t>application</t>
  </dd>
  <dt>Subtype name:</dt>
  <dd>
    <t>jsonpath</t>
  </dd>
  <dt>Required parameters:</dt>
  <dd>
    <t>N/A</t>
  </dd>
  <dt>Optional parameters:</dt>
  <dd>
    <t>N/A</t>
  </dd>
  <dt>Encoding considerations:</dt>
  <dd>
    <t>binary (UTF-8)</t>
  </dd>
  <dt>Security considerations:</dt>
  <dd>
    <t>See the Security Considerations section of RFCXXXX.</t>
  </dd>
  <dt>Interoperability considerations:</dt>
  <dd>
    <t>N/A</t>
  </dd>
  <dt>Published specification:</dt>
  <dd>
    <t>RFCXXXX</t>
  </dd>
  <dt>Applications that use this media type:</dt>
  <dd>
    <t>Applications that need to convey queries in JSON data</t>
  </dd>
  <dt>Fragment identifier considerations:</dt>
  <dd>
    <t>N/A</t>
  </dd>
  <dt>Additional information:</dt>
  <dd>
    <dl>
      <dt>Deprecated alias names for this type:</dt>
      <dd>
        <t>N/A</t>
      </dd>
      <dt>Magic number(s):</dt>
      <dd>
        <t>N/A</t>
      </dd>
      <dt>File extension(s):</dt>
      <dd>
        <t>N/A</t>
      </dd>
      <dt>Macintosh file type code(s):</dt>
      <dd>
        <t>N/A</t>
      </dd>
    </dl>
  </dd>
</dl>

<t>Person &amp; email address to contact for further information:
   iesg@ietf.org</t>

<dl>
  <dt>Intended usage:</dt>
  <dd>
    <t>COMMON</t>
  </dd>
  <dt>Restrictions on usage:</dt>
  <dd>
    <t>N/A</t>
  </dd>
  <dt>Author:</dt>
  <dd>
    <t>JSONPath WG</t>
  </dd>
  <dt>Change controller:</dt>
  <dd>
    <t>IESG</t>
  </dd>
  <dt>Provisional registration? (standards tree only):</dt>
  <dd>
    <t>no</t>
  </dd>
</dl>

</section>
<section anchor="iana-fnex"><name>Function Extensions</name>

<t>This specification defines a new "Function Extensions sub-registry" in
a new "JSONPath Parameters registry", with the policy "expert review"
(<xref section="4.5" sectionFormat="of" target="BCP26"/>).</t>

<t anchor="de-instructions">The experts are instructed to be frugal in the allocation of function
extension names that are suggestive of generally applicable semantics,
keeping them in reserve for functions that are likely to enjoy wide
use and can make good use of their conciseness.
The expert is also instructed to direct the registrant to provide a
specification (<xref section="4.6" sectionFormat="of" target="BCP26"/>), but can make exceptions,
for instance when a specification is not available at the time of
registration but is likely forthcoming.
If the expert becomes aware of function extensions that are deployed and
in use, they may also initiate a registration on their own if
they deem such a registration can avert potential future collisions.</t>

<t>Each entry in the sub-registry must include:</t>

<dl newline="true">
  <dt>Function Name:</dt>
  <dd>
    <t>a lower case ASCII <xref target="STD80"/> string that starts with a letter and can
contain letters, digits and underscore characters afterwards
(<spanx style="verb">[a-z][_a-z0-9]*</spanx>). No other entry in the sub-registry can have the
same function name.</t>
  </dd>
  <dt>Brief description:</dt>
  <dd>
    <t>a brief description</t>
  </dd>
  <dt>Parameters:</dt>
  <dd>
    <t>A comma-separated list of zero or more declared types, one for each of the
arguments expected for this function extension</t>
  </dd>
  <dt>Result:</dt>
  <dd>
    <t>The declared type of the result for this function extension</t>
  </dd>
  <dt>Change Controller:</dt>
  <dd>
    <t>(see <xref section="2.3" sectionFormat="of" target="BCP26"/>)</t>
  </dd>
  <dt>Reference:</dt>
  <dd>
    <t>a reference document that provides a description of the function
extension</t>
  </dd>
</dl>

<t>Initial entries in this sub-registry are as listed in <xref target="pre-reg"/>; the
Column "Change Controller" always has the value "IESG" and the column
"Reference" always has the value "<xref target="fnex"/> of RFCthis":</t>

<texttable title="Initial Entries in the Function Extensions Subregistry" anchor="pre-reg">
      <ttcol align='left'>Function Name</ttcol>
      <ttcol align='left'>Brief description</ttcol>
      <ttcol align='left'>Parameters</ttcol>
      <ttcol align='left'>Result</ttcol>
      <c>length</c>
      <c>length of string, array, object</c>
      <c><spanx style="verb">ValueType</spanx></c>
      <c><spanx style="verb">ValueType</spanx></c>
      <c>count</c>
      <c>size of nodelist</c>
      <c><spanx style="verb">NodesType</spanx></c>
      <c><spanx style="verb">ValueType</spanx></c>
      <c>match</c>
      <c>regular expression full match</c>
      <c><spanx style="verb">ValueType</spanx>, <spanx style="verb">ValueType</spanx></c>
      <c><spanx style="verb">LogicalType</spanx></c>
      <c>search</c>
      <c>regular expression substring match</c>
      <c><spanx style="verb">ValueType</spanx>, <spanx style="verb">ValueType</spanx></c>
      <c><spanx style="verb">LogicalType</spanx></c>
      <c>value</c>
      <c>value of single node in nodelist</c>
      <c><spanx style="verb">NodesType</spanx></c>
      <c><spanx style="verb">ValueType</spanx></c>
</texttable>

</section>
</section>
<section anchor="Security"><name>Security Considerations</name>

<t>Security considerations for JSONPath can stem from</t>

<t><list style="symbols">
  <t>attack vectors on JSONPath implementations,</t>
  <t>attack vectors on how JSONPath queries are formed, and</t>
  <t>the way JSONPath is used in security-relevant mechanisms.</t>
</list></t>

<section anchor="attack-vectors-on-jsonpath-implementations"><name>Attack Vectors on JSONPath Implementations</name>

<t>Historically, JSONPath has often been implemented by feeding parts of
the query to an underlying programming language engine, e.g.,
JavaScript's <spanx style="verb">eval()</spanx> function.
This approach is well known to lead to injection attacks and would
require perfect input validation to prevent these attacks (see
<xref section="12" sectionFormat="of" target="RFC8259"/> for similar considerations for JSON itself).
Instead, JSONPath implementations need to implement the entire syntax
of the query without relying on the parsers of programming language
engines.</t>

<t>Attacks on availability may attempt to trigger unusually expensive
runtime performance exhibited by certain implementations in certain
cases.
(See <xref section="10" sectionFormat="of" target="RFC8949"/> for issues in hash-table implementations,
and <xref section="8" sectionFormat="of" target="I-D.draft-ietf-jsonpath-iregexp"/> for performance issues in regular
expression implementations.)
Implementers need to be aware that good average performance is not
sufficient as long as an attacker can choose to submit specially
crafted JSONPath queries or query arguments that trigger surprisingly high, possibly
exponential, CPU usage or, for example via a naive recursive implementation of the descendant segment,
stack overflow. Implementations need to have appropriate resource management
to mitigate these attacks.</t>

</section>
<section anchor="attack-vectors-on-how-jsonpath-queries-are-formed"><name>Attack Vectors on How JSONPath Queries are Formed</name>

<t>JSONPath queries are often not static, but formed from variables that
provide index values, member names, or values to compare with in a
filter expression.
These variables need to be translated into the form they take in a
JSONPath query, e.g., by escaping string delimiters, or by only
allowing specific constructs such as <spanx style="verb">.name</spanx> to be formed when the
given values allow that.
Failure to perform these translations correctly can lead to unexpected
failures, which can lead to Availability, Confidentiality, and
Integrity breaches, in particular if an adversary has control over the
values (e.g., by entering them into a Web form).
The resulting class of attacks, <em>injections</em> (e.g., SQL injections),
is consistently found among the top causes of application security
vulnerabilities and requires particular attention.</t>

</section>
<section anchor="attacks-on-security-mechanisms-that-employ-jsonpath"><name>Attacks on Security Mechanisms that Employ JSONPath</name>

<t>Where JSONPath is used as a part of a security mechanism, attackers
can attempt to provoke unexpected or unpredictable behavior, or
take advantage of differences in behavior between JSONPath implementations.</t>

<t>Unexpected or unpredictable behavior can arise from a query argument with certain
constructs described as unpredictable by <xref target="RFC8259"/>.
Predictable behavior can be expected, except in relation to the ordering
of objects, for any query argument conforming with <xref target="RFC7493"/>.</t>

<t>Other attacks can target the behavior of underlying technologies such as UTF-8 (see
<xref section="10" sectionFormat="of" target="RFC3629"/>) and the Unicode character set.</t>

</section>
</section>


  </middle>

  <back>


    <references title='Normative References'>





<reference anchor='STD80' target='https://www.rfc-editor.org/info/rfc20'>
<front>
<title>ASCII format for network interchange</title>
<author fullname='V.G. Cerf' initials='V.G.' surname='Cerf'><organization/></author>
<date month='October' year='1969'/>
</front>
<seriesInfo name='STD' value='80'/>
<seriesInfo name='RFC' value='20'/>
<seriesInfo name='DOI' value='10.17487/RFC0020'/>
</reference>



<reference anchor='BCP26' target='https://www.rfc-editor.org/info/rfc8126'>
<front>
<title>Guidelines for Writing an IANA Considerations Section in RFCs</title>
<author fullname='M. Cotton' initials='M.' surname='Cotton'><organization/></author>
<author fullname='B. Leiba' initials='B.' surname='Leiba'><organization/></author>
<author fullname='T. Narten' initials='T.' surname='Narten'><organization/></author>
<date month='June' year='2017'/>
<abstract><t>Many protocols make use of points of extensibility that use constants to identify various protocol parameters.  To ensure that the values in these fields do not have conflicting uses and to promote interoperability, their allocations are often coordinated by a central record keeper.  For IETF protocols, that role is filled by the Internet Assigned Numbers Authority (IANA).</t><t>To make assignments in a given registry prudently, guidance describing the conditions under which new values should be assigned, as well as when and how modifications to existing values can be made, is needed.  This document defines a framework for the documentation of these guidelines by specification authors, in order to assure that the provided guidance for the IANA Considerations is clear and addresses the various issues that are likely in the operation of a registry.</t><t>This is the third edition of this document; it obsoletes RFC 5226.</t></abstract>
</front>
<seriesInfo name='BCP' value='26'/>
<seriesInfo name='RFC' value='8126'/>
<seriesInfo name='DOI' value='10.17487/RFC8126'/>
</reference>



<reference anchor='RFC3629' target='https://www.rfc-editor.org/info/rfc3629'>
<front>
<title>UTF-8, a transformation format of ISO 10646</title>
<author fullname='F. Yergeau' initials='F.' surname='Yergeau'><organization/></author>
<date month='November' year='2003'/>
<abstract><t>ISO/IEC 10646-1 defines a large character set called the Universal Character Set (UCS) which encompasses most of the world's writing systems.  The originally proposed encodings of the UCS, however, were not compatible with many current applications and protocols, and this has led to the development of UTF-8, the object of this memo.  UTF-8 has the characteristic of preserving the full US-ASCII range, providing compatibility with file systems, parsers and other software that rely on US-ASCII values but are transparent to other values.  This memo obsoletes and replaces RFC 2279.</t></abstract>
</front>
<seriesInfo name='STD' value='63'/>
<seriesInfo name='RFC' value='3629'/>
<seriesInfo name='DOI' value='10.17487/RFC3629'/>
</reference>



<reference anchor='RFC5234' target='https://www.rfc-editor.org/info/rfc5234'>
<front>
<title>Augmented BNF for Syntax Specifications: ABNF</title>
<author fullname='D. Crocker' initials='D.' role='editor' surname='Crocker'><organization/></author>
<author fullname='P. Overell' initials='P.' surname='Overell'><organization/></author>
<date month='January' year='2008'/>
<abstract><t>Internet technical specifications often need to define a formal syntax.  Over the years, a modified version of Backus-Naur Form (BNF), called Augmented BNF (ABNF), has been popular among many Internet specifications.  The current specification documents ABNF. It balances compactness and simplicity with reasonable representational power.  The differences between standard BNF and ABNF involve naming rules, repetition, alternatives, order-independence, and value ranges.  This specification also supplies additional rule definitions and encoding for a core lexical analyzer of the type common to several Internet specifications.  [STANDARDS-TRACK]</t></abstract>
</front>
<seriesInfo name='STD' value='68'/>
<seriesInfo name='RFC' value='5234'/>
<seriesInfo name='DOI' value='10.17487/RFC5234'/>
</reference>



<reference anchor='RFC8259' target='https://www.rfc-editor.org/info/rfc8259'>
<front>
<title>The JavaScript Object Notation (JSON) Data Interchange Format</title>
<author fullname='T. Bray' initials='T.' role='editor' surname='Bray'><organization/></author>
<date month='December' year='2017'/>
<abstract><t>JavaScript Object Notation (JSON) is a lightweight, text-based, language-independent data interchange format.  It was derived from the ECMAScript Programming Language Standard.  JSON defines a small set of formatting rules for the portable representation of structured data.</t><t>This document removes inconsistencies with other specifications of JSON, repairs specification errors, and offers experience-based interoperability guidance.</t></abstract>
</front>
<seriesInfo name='STD' value='90'/>
<seriesInfo name='RFC' value='8259'/>
<seriesInfo name='DOI' value='10.17487/RFC8259'/>
</reference>



<reference anchor='RFC7493' target='https://www.rfc-editor.org/info/rfc7493'>
<front>
<title>The I-JSON Message Format</title>
<author fullname='T. Bray' initials='T.' role='editor' surname='Bray'><organization/></author>
<date month='March' year='2015'/>
<abstract><t>I-JSON (short for &quot;Internet JSON&quot;) is a restricted profile of JSON designed to maximize interoperability and increase confidence that software can process it successfully with predictable results.</t></abstract>
</front>
<seriesInfo name='RFC' value='7493'/>
<seriesInfo name='DOI' value='10.17487/RFC7493'/>
</reference>



<reference anchor='RFC6838' target='https://www.rfc-editor.org/info/rfc6838'>
<front>
<title>Media Type Specifications and Registration Procedures</title>
<author fullname='N. Freed' initials='N.' surname='Freed'><organization/></author>
<author fullname='J. Klensin' initials='J.' surname='Klensin'><organization/></author>
<author fullname='T. Hansen' initials='T.' surname='Hansen'><organization/></author>
<date month='January' year='2013'/>
<abstract><t>This document defines procedures for the specification and registration of media types for use in HTTP, MIME, and other Internet protocols.  This memo documents an Internet Best Current Practice.</t></abstract>
</front>
<seriesInfo name='BCP' value='13'/>
<seriesInfo name='RFC' value='6838'/>
<seriesInfo name='DOI' value='10.17487/RFC6838'/>
</reference>


<reference anchor='I-D.draft-ietf-jsonpath-iregexp' target='https://datatracker.ietf.org/doc/html/draft-ietf-jsonpath-iregexp-03'>
   <front>
      <title>I-Regexp: An Interoperable Regexp Format</title>
      <author fullname='Carsten Bormann' initials='C.' surname='Bormann'>
         <organization>Universität Bremen TZI</organization>
      </author>
      <author fullname='Tim Bray' initials='T.' surname='Bray'>
         <organization>Textuality</organization>
      </author>
      <date day='6' month='February' year='2023'/>
      <abstract>
	 <t>   This document specifies I-Regexp, a flavor of regular expressions
   that is limited in scope with the goal of interoperation across many
   different regular-expression libraries.

	 </t>
      </abstract>
   </front>
   <seriesInfo name='Internet-Draft' value='draft-ietf-jsonpath-iregexp-03'/>
   
</reference>


<reference anchor="UNICODE" target="https://www.unicode.org/versions/Unicode14.0.0/UnicodeStandard-14.0.pdf">
  <front>
    <title>The Unicode® Standard: Version 14.0 - Core Specification</title>
    <author >
      <organization>The Unicode Consortium</organization>
    </author>
    <date year="2021" month="September"/>
  </front>
  <format type="PDF" target="https://www.unicode.org/versions/Unicode14.0.0/UnicodeStandard-14.0.pdf"/>
</reference>




<reference anchor='RFC2119' target='https://www.rfc-editor.org/info/rfc2119'>
<front>
<title>Key words for use in RFCs to Indicate Requirement Levels</title>
<author fullname='S. Bradner' initials='S.' surname='Bradner'><organization/></author>
<date month='March' year='1997'/>
<abstract><t>In many standards track documents several words are used to signify the requirements in the specification.  These words are often capitalized. This document defines these words as they should be interpreted in IETF documents.  This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t></abstract>
</front>
<seriesInfo name='BCP' value='14'/>
<seriesInfo name='RFC' value='2119'/>
<seriesInfo name='DOI' value='10.17487/RFC2119'/>
</reference>



<reference anchor='RFC8174' target='https://www.rfc-editor.org/info/rfc8174'>
<front>
<title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
<author fullname='B. Leiba' initials='B.' surname='Leiba'><organization/></author>
<date month='May' year='2017'/>
<abstract><t>RFC 2119 specifies common key words that may be used in protocol  specifications.  This document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the key words have the  defined special meanings.</t></abstract>
</front>
<seriesInfo name='BCP' value='14'/>
<seriesInfo name='RFC' value='8174'/>
<seriesInfo name='DOI' value='10.17487/RFC8174'/>
</reference>




    </references>

    <references title='Informative References'>





<reference anchor='RFC6901' target='https://www.rfc-editor.org/info/rfc6901'>
<front>
<title>JavaScript Object Notation (JSON) Pointer</title>
<author fullname='P. Bryan' initials='P.' role='editor' surname='Bryan'><organization/></author>
<author fullname='K. Zyp' initials='K.' surname='Zyp'><organization/></author>
<author fullname='M. Nottingham' initials='M.' role='editor' surname='Nottingham'><organization/></author>
<date month='April' year='2013'/>
<abstract><t>JSON Pointer defines a string syntax for identifying a specific value within a JavaScript Object Notation (JSON) document.</t></abstract>
</front>
<seriesInfo name='RFC' value='6901'/>
<seriesInfo name='DOI' value='10.17487/RFC6901'/>
</reference>


<reference anchor="JSONPath-orig" target="https://goessner.net/articles/JsonPath/">
  <front>
    <title>JSONPath — XPath for JSON</title>
    <author initials="S." surname="Gössner" fullname="Stefan Gössner">
      <organization>Fachhochschule Dortmund</organization>
    </author>
    <date year="2007" month="February" day="21"/>
  </front>
</reference>


<reference anchor='XPath' target='https://www.w3.org/TR/2010/REC-xpath20-20101214/'>
  <front>
    <title>XML Path Language (XPath) 2.0 (Second Edition)</title>
    <author fullname='Anders Berglund' role='editor'/>
    <author fullname='Don Chamberlin' role='editor'/>
    <author fullname='Jerome Simeon' role='editor'/>
    <author fullname='Jonathan Robie' role='editor'/>
    <author fullname='Mary Fernandez' role='editor'/>
    <author fullname='Michael Kay' role='editor'/>
    <author fullname='Scott Boag' role='editor'/>
    <date day='14' month='December' year='2010'/>
  </front>
  <seriesInfo name='W3C REC' value='REC-xpath20-20101214'/>
  <seriesInfo name='W3C' value='REC-xpath20-20101214'/>
</reference>


<reference anchor="E4X" >
  <front>
    <title>Information technology — ECMAScript for XML (E4X) specification</title>
    <author >
      <organization>ISO</organization>
    </author>
    <date year="2006"/>
  </front>
  <seriesInfo name="ISO/IEC 22537:2006" value=""/>
</reference>
<reference anchor="SLICE" target="https://github.com/tc39/proposal-slice-notation">
  <front>
    <title>Slice notation</title>
    <author >
      <organization></organization>
    </author>
    <date year="n.d."/>
  </front>
</reference>
<reference anchor="ECMA-262" target="http://www.ecma-international.org/publications/files/ECMA-ST-ARCH/ECMA-262,%203rd%20edition,%20December%201999.pdf">
  <front>
    <title>ECMAScript Language Specification, Standard ECMA-262, Third Edition</title>
    <author >
      <organization>Ecma International</organization>
    </author>
    <date year="1999" month="December"/>
  </front>
</reference>




<reference anchor='RFC8949' target='https://www.rfc-editor.org/info/rfc8949'>
<front>
<title>Concise Binary Object Representation (CBOR)</title>
<author fullname='C. Bormann' initials='C.' surname='Bormann'><organization/></author>
<author fullname='P. Hoffman' initials='P.' surname='Hoffman'><organization/></author>
<date month='December' year='2020'/>
<abstract><t>The Concise Binary Object Representation (CBOR) is a data format whose design goals include the possibility of extremely small code size, fairly small message size, and extensibility without the need for version negotiation. These design goals make it different from earlier binary serializations such as ASN.1 and MessagePack.</t><t>This document obsoletes RFC 7049, providing editorial improvements, new details, and errata fixes while keeping full compatibility with the interchange format of RFC 7049.  It does not create a new version of the format.</t></abstract>
</front>
<seriesInfo name='STD' value='94'/>
<seriesInfo name='RFC' value='8949'/>
<seriesInfo name='DOI' value='10.17487/RFC8949'/>
</reference>


<reference anchor="BOOLEAN-LAWS" target="https://en.wikipedia.org/wiki/Boolean_algebra#Laws">
  <front>
    <title>Boolean algebra laws</title>
    <author >
      <organization></organization>
    </author>
    <date year="n.d."/>
  </front>
</reference>


    </references>


<section anchor="inspired-by-xpath"><name>Inspired by XPath</name>

<t>This appendix is informative.</t>

<t>At the time JSONPath was invented, XML was noted for the availability of
powerful tools to analyze, transform and selectively extract data from
XML documents.
<xref target="XPath"/> is one of these tools.</t>

<t>In 2007, the need for something solving the same class of problems for
the emerging JSON community became apparent, specifically for:</t>

<t><list style="symbols">
  <t>Finding data interactively and extracting them out of <xref target="RFC8259"/>
JSON values without special scripting.</t>
  <t>Specifying the relevant parts of the JSON data in a request by a
client, so the server can reduce the amount of data in its response,
minimizing bandwidth usage.</t>
</list></t>

<t>(Note that XPath has evolved since 2007, and recent versions even
nominally support operating inside JSON values.
This appendix only discusses the more widely used version of XPath
that was available in 2007.)</t>

<t>JSONPath picks up the overall feeling of XPath, but maps the concepts
to syntax (and partially semantics) that would be familiar to someone
using JSON in a dynamic language.</t>

<t>E.g., in popular dynamic programming languages such as JavaScript,
Python and PHP, the semantics of the XPath expression</t>

<figure><sourcecode type="xpath"><![CDATA[
/store/book[1]/title
]]></sourcecode></figure>

<t>can be realized in the expression</t>

<figure><sourcecode type="xpath"><![CDATA[
x.store.book[0].title
]]></sourcecode></figure>

<t>or, in bracket notation,</t>

<figure><sourcecode type="xpath"><![CDATA[
x['store']['book'][0]['title']
]]></sourcecode></figure>

<t>with the variable x holding the query argument.</t>

<t>The JSONPath language was designed to:</t>

<t><list style="symbols">
  <t>be naturally based on those language characteristics;</t>
  <t>cover only the most essential parts of XPath 1.0;</t>
  <t>be lightweight in code size and memory consumption;</t>
  <t>be runtime efficient.</t>
</list></t>

<section anchor="xpath-overview"><name>JSONPath and XPath</name>

<t>JSONPath expressions apply to JSON values in the same way
as XPath expressions are used in combination with an XML document.
JSONPath uses <spanx style="verb">$</spanx> to refer to the root node of the query argument, similar
to XPath's <spanx style="verb">/</spanx> at the front.</t>

<t>JSONPath expressions move further down the hierarchy using <em>dot notation</em>
(<spanx style="verb">$.store.book[0].title</spanx>)
or the <em>bracket notation</em>
(<spanx style="verb">$['store']['book'][0]['title']</spanx>), a lightweight/limited, and a more
heavyweight syntax replacing XPath's <spanx style="verb">/</spanx> within query expressions.</t>

<t>Both JSONPath and XPath use <spanx style="verb">*</spanx> for a wildcard.
The descendant operators, starting with <spanx style="verb">..</spanx>, borrowed from <xref target="E4X"/>, are similar to XPath's <spanx style="verb">//</spanx>.
The array slicing construct <spanx style="verb">[start:end:step]</spanx> is unique to JSONPath,
inspired by <xref target="SLICE"/> from ECMASCRIPT 4.</t>

<t>Filter expressions are supported via the syntax <spanx style="verb">?&lt;logical-expr&gt;</spanx> as in</t>

<figure><sourcecode type="JSONPath"><![CDATA[
$.store.book[?@.price < 10].title
]]></sourcecode></figure>

<t><xref target="tbl-xpath-overview"/> extends <xref target="tbl-overview"/> by providing a comparison
with similar XPath concepts.</t>

<texttable title="XPath syntax compared to JSONPath" anchor="tbl-xpath-overview">
      <ttcol align='left'>XPath</ttcol>
      <ttcol align='left'>JSONPath</ttcol>
      <ttcol align='left'>Description</ttcol>
      <c><spanx style="verb">/</spanx></c>
      <c><spanx style="verb">$</spanx></c>
      <c>the root XML element</c>
      <c><spanx style="verb">.</spanx></c>
      <c><spanx style="verb">@</spanx></c>
      <c>the current XML element</c>
      <c><spanx style="verb">/</spanx></c>
      <c><spanx style="verb">.</spanx> or <spanx style="verb">[]</spanx></c>
      <c>child operator</c>
      <c><spanx style="verb">..</spanx></c>
      <c>n/a</c>
      <c>parent operator</c>
      <c><spanx style="verb">//</spanx></c>
      <c><spanx style="verb">..name</spanx>, <spanx style="verb">..[index]</spanx>, <spanx style="verb">..*</spanx>, or <spanx style="verb">..[*]</spanx></c>
      <c>descendants (JSONPath borrows this syntax from E4X)</c>
      <c><spanx style="verb">*</spanx></c>
      <c><spanx style="verb">*</spanx></c>
      <c>wildcard: All XML elements regardless of their names</c>
      <c><spanx style="verb">@</spanx></c>
      <c>n/a</c>
      <c>attribute access: JSON values do not have attributes</c>
      <c><spanx style="verb">[]</spanx></c>
      <c><spanx style="verb">[]</spanx></c>
      <c>subscript operator used to iterate over XML element collections and for predicates</c>
      <c><spanx style="verb">¦</spanx></c>
      <c><spanx style="verb">[,]</spanx></c>
      <c>Union operator (results in a combination of node sets); called list operator in JSONPath, allows combining member names, array indices, and slices</c>
      <c>n/a</c>
      <c><spanx style="verb">[start:end:step]</spanx></c>
      <c>array slice operator borrowed from ES4</c>
      <c><spanx style="verb">[]</spanx></c>
      <c><spanx style="verb">?</spanx></c>
      <c>applies a filter (script) expression</c>
      <c>seamless</c>
      <c>n/a</c>
      <c>expression engine</c>
      <c><spanx style="verb">()</spanx></c>
      <c>n/a</c>
      <c>grouping</c>
</texttable>

<!-- note that the weirdness about the vertical bar above is intentional -->

<t>For further illustration, <xref target="tbl-xpath-equivalents"/> shows some XPath expressions
and their JSONPath equivalents.</t>

<texttable title="Example XPath expressions and their JSONPath equivalents" anchor="tbl-xpath-equivalents">
      <ttcol align='left'>XPath</ttcol>
      <ttcol align='left'>JSONPath</ttcol>
      <ttcol align='left'>Result</ttcol>
      <c><spanx style="verb">/store/book/author</spanx></c>
      <c><spanx style="verb">$.store.book[*].author</spanx></c>
      <c>the authors of all books in the store</c>
      <c><spanx style="verb">//author</spanx></c>
      <c><spanx style="verb">$..author</spanx></c>
      <c>all authors</c>
      <c><spanx style="verb">/store/*</spanx></c>
      <c><spanx style="verb">$.store.*</spanx></c>
      <c>all things in store, which are some books and a red bicycle</c>
      <c><spanx style="verb">/store//price</spanx></c>
      <c><spanx style="verb">$.store..price</spanx></c>
      <c>the prices of everything in the store</c>
      <c><spanx style="verb">//book[3]</spanx></c>
      <c><spanx style="verb">$..book[2]</spanx></c>
      <c>the third book</c>
      <c><spanx style="verb">//book[last()]</spanx></c>
      <c><spanx style="verb">$..book[-1]</spanx></c>
      <c>the last book in order</c>
      <c><spanx style="verb">//book[position()&lt;3]</spanx></c>
      <c><spanx style="verb">$..book[0,1]</spanx><br /><spanx style="verb">$..book[:2]</spanx></c>
      <c>the first two books</c>
      <c><spanx style="verb">//book[isbn]</spanx></c>
      <c><spanx style="verb">$..book[?@.isbn]</spanx></c>
      <c>filter all books with isbn number</c>
      <c><spanx style="verb">//book[price&lt;10]</spanx></c>
      <c><spanx style="verb">$..book[?@.price&lt;10]</spanx></c>
      <c>filter all books cheaper than 10</c>
      <c><spanx style="verb">//*</spanx></c>
      <c><spanx style="verb">$..*</spanx></c>
      <c>all elements in XML document; all member values and array elements contained in input value</c>
</texttable>

<t>XPath has a lot more functionality (location paths in unabbreviated syntax,
operators and functions) than listed in this comparison.  Moreover, there are
significant differences in how the subscript operator works in XPath and
JSONPath:</t>

<t><list style="symbols">
  <t>Square brackets in XPath expressions always operate on the <em>node
set</em> resulting from the previous path fragment. Indices always start
at 1.</t>
  <t>With JSONPath, square brackets operate on each of the nodes in the <em>nodelist</em>
resulting from the previous query segment. Array indices always start
at 0.</t>
</list></t>

</section>
</section>
<section anchor="json-pointer"><name>JSON Pointer</name>

<t>This appendix is informative.</t>

<t>JSONPath is not intended as a replacement for, but as a more powerful
companion to, JSON Pointer <xref target="RFC6901"/>. The purposes of the two standards
are different.</t>

<t>JSON Pointer is for identifying a single value within a JSON value whose
structure is known.</t>

<t>JSONPath can identify a single value within a JSON value, for example by
using a Normalized Path. But JSONPath is also a query syntax that can be used
to search for and extract multiple values from JSON values whose structure
is known only in a general way.</t>

<t>A Normalized JSONPath can be converted into a JSON Pointer by converting the syntax,
without knowledge of any JSON value. The inverse is not generally true: a numeric
reference token (path component) in a JSON Pointer may identify a member value of an object or an element of an array.
For conversion to a JSONPath query, knowledge of the structure of the JSON value is
needed to distinguish these cases.</t>

</section>
<section numbered="false" anchor="acknowledgements"><name>Acknowledgements</name>

<t>This document is based on <contact fullname="Stefan Gössner"/>'s
original online article defining JSONPath <xref target="JSONPath-orig"/>.</t>

<t>The books example was taken from
http://coli.lili.uni-bielefeld.de/~andreas/Seminare/sommer02/books.xml
— a dead link now.</t>

<!--  LocalWords:  JSONPath XPath nodelist memoization
 -->

</section>

    <section anchor="contributors" numbered="false" toc="include" removeInRFC="false">
        <name>Contributors</name>
    <contact initials="M." surname="Mikulicic" fullname="Marko Mikulicic">
      <organization>InfluxData, Inc.</organization>
      <address>
        <postal>
          <city>Pisa</city>
          <country>IT</country>
        </postal>
        <email>mmikulicic@gmail.com</email>
      </address>
    </contact>
    <contact initials="E." surname="Surov" fullname="Edward Surov">
      <organization>TheSoul Publishing Ltd.</organization>
      <address>
        <postal>
          <city>Limassol</city>
          <country>Cyprus</country>
        </postal>
        <email>esurov.tsp@gmail.com</email>
      </address>
    </contact>
    <contact initials="G." surname="Dennis" fullname="Greg Dennis">
      <organization></organization>
      <address>
        <postal>
          <city>Auckland</city>
          <country>New Zealand</country>
        </postal>
        <email>gregsdennis@yahoo.com</email>
        <uri>https://github.com/gregsdennis</uri>
      </address>
    </contact>
    </section>

  </back>

<!-- ##markdown-source:
H4sIAFuEIGQAA+y92XYcR7Ig+O5f4UqpCglUZhKJhQu4iBAAllBDgrwEdaXb
EI8yMjMAhJiIyIqIBAgBmDMf0e/dD33u4zzOB9T9k/mC+YSxzbdYQFBL1Uvj
VFFARLi7ubm5uZm5Lf1+X51v6XWlptkkjc7iLT3No+Oyn8Tlcf/nIkvnUXna
H0dF3B+uqUlUbuminKpJlhZxWiyKLb1U5ot4SRWL8VlSFEmWlpdz6GZ/790L
pWZRerKl41TNky2ldZlNbAP6axrPy1N4tIF/F5dneXxceF8UWV5WHk2ys7M4
LeERPlFlUs5gtM7fDl8fvImwr39bxPmljj/O85jAKfRxlmt831HReJzHMF/z
tYryONrS22/fqYsT91h//1f14YL/VtOohAHWVtcASdGiPM3yLdUHQPIMB46n
SZnl8Ccj77CMj6NU//W//p+iSGN8nuXQ8Ytocnq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