<?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.27 (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-14" 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>Functions are referred to using the function name followed by a pair
of parentheses, as in <spanx style="verb">fname()</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>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. JSONPath queries are sequences of Unicode scalar values.</t>
  </dd>
  <dt>Segment:</dt>
  <dd>
    <t>One of the constructs which select children (<spanx style="verb">[&lt;selectors&gt;]</spanx>)
or descendants (<spanx style="verb">..[&lt;selectors&gt;]</spanx>) of an input value.</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>
  <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>
</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">[&lt;selectors&gt;]</spanx>) or descendants (<spanx style="verb">..[&lt;selectors&gt;]</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>Bracket notation contains a comma separated list of one or more selectors of any kind.
Selectors are detailed in the next section.</t>

<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: 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 0xFFFF, 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: 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 wildcard 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 wildcard 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 wildcard 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:</t>

<t><list style="symbols">
  <t>An <spanx style="verb">index-selector</spanx> is an integer (in base 10, as in JSON numbers).</t>
  <t>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>
</list></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: 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> (see <xref target="typesys"/>):</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><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: 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: 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>Notes:</t>

<t><list style="symbols">
  <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.</t>
  <t>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 <spanx style="verb">value()</spanx> (see <xref target="value"/>),
that takes a parameter of type <spanx style="verb">NodesType</spanx> and returns a
result of type <spanx style="verb">ValueType</spanx>.</t>
</list></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 <spanx style="verb">length()</spanx> 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 <spanx style="verb">count()</spanx> 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.
Notes:</t>

<t><list style="symbols">
  <t>There is no deduplication of the nodelist.</t>
  <t>The number of nodes in the nodelist is counted independent of their
values or any children they may have; e.g., the count of a non-empty
singular nodelist such as <spanx style="verb">count(@)</spanx> is always 1.</t>
</list></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 <spanx style="verb">match()</spanx> 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 <spanx style="verb">search()</spanx> 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 <spanx style="verb">value()</spanx> 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 <spanx style="verb">value()</spanx> 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: 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: 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>.
Note: as with the similar shorthand of a <spanx style="verb">child-segment</spanx>, 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: <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: <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: 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: 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'>
<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'>
<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'>
<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'>
<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'>
<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'>
<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'>
<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'>
   <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='27' month='May' 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-07'/>
   
</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'>
<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'>
<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'>
<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'>
<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: 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: 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:
H4sIACI+hGQAA+y92XYcR7Ig+O5f4UqpCglUZhKJhQu4iCAASqghQV6CKule
iEcZmRkAQkxEZEVEAoRAzOmP6Pfuhz73sR/nA+r+yXzBfMLY5lssIKil6qVx
qiggItzd3Nzc3Mzcln6/r8639LpS02ySRmfxlp7m0XHZT+LyuP9zkaXzqDzt
j6Mi7g831CQqt3RRTtUkS4s4LRbFll4q80W8pIrF+CwpiiRLy8s5dLO/9/a5
UrMoPdnScarmyZbSuswmtgH9NY3n5Sk82sC/i8uzPD4uvC+KLC8rjybZ2Vmc
lvAIn6gyKWcwWuevh68OXkfY178t4vxSxx/meUzgFPo4yzW+76hoPM5jmK/5
Wk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