@@ -11544,7 +11544,7 @@ table2-mapping
11544
11544
11545
11545
<para>JSON query functions and operators
11546
11546
pass the provided path expression to the <firstterm>path engine</firstterm>
11547
- for evaluation. If the expression matches the JSON data to be queried ,
11547
+ for evaluation. If the expression matches thequeried JSON data,
11548
11548
the corresponding SQL/JSON item is returned.
11549
11549
Path expressions are written in the SQL/JSON path language
11550
11550
and can also include arithmetic expressions and functions.
@@ -11604,7 +11604,7 @@ table2-mapping
11604
11604
11605
11605
<para>
11606
11606
If the item to retrieve is an element of an array, you have
11607
- to unnest this array using the [*] operator. For example,
11607
+ to unnest this array using the<literal> [*]</literal> operator. For example,
11608
11608
the following path will return location coordinates for all
11609
11609
the available track segments:
11610
11610
<programlisting>
@@ -11625,8 +11625,7 @@ table2-mapping
11625
11625
The result of each path evaluation step can be processed
11626
11626
by one or more <type>jsonpath</type> operators and methods
11627
11627
listed in <xref linkend="functions-sqljson-path-operators"/>.
11628
- Each method must be preceded by a dot, while arithmetic and Boolean
11629
- operators are separated from the operands by spaces. For example,
11628
+ Each method name must be preceded by a dot. For example,
11630
11629
you can get an array size:
11631
11630
<programlisting>
11632
11631
'$.track.segments.size()'
@@ -11907,7 +11906,7 @@ table2-mapping
11907
11906
</row>
11908
11907
<row>
11909
11908
<entry><literal>double()</literal></entry>
11910
- <entry>Approximatenumeric value converted from a string</entry>
11909
+ <entry>Approximatefloating-point number converted from an SQL/JSON number or a string</entry>
11911
11910
<entry><literal>{"len": "1.9"}</literal></entry>
11912
11911
<entry><literal>$.len.double() * 2</literal></entry>
11913
11912
<entry><literal>3.8</literal></entry>
@@ -11936,10 +11935,10 @@ table2-mapping
11936
11935
<row>
11937
11936
<entry><literal>keyvalue()</literal></entry>
11938
11937
<entry>
11939
- Sequence of object's key-value pairs represented as array ofobjects
11938
+ Sequence of object's key-value pairs represented as array ofitems
11940
11939
containing three fields (<literal>"key"</literal>,
11941
11940
<literal>"value"</literal>, and <literal>"id"</literal>).
11942
- <literal>"id"</literal> isan unique identifier of the object
11941
+ <literal>"id"</literal> isa unique identifier of the object
11943
11942
key-value pair belongs to.
11944
11943
</entry>
11945
11944
<entry><literal>{"x": "20", "y": 32}</literal></entry>
@@ -12061,9 +12060,9 @@ table2-mapping
12061
12060
<entry><literal>like_regex</literal></entry>
12062
12061
<entry>
12063
12062
Tests pattern matching with POSIX regular expressions
12064
- (<xref linkend="functions-posix-regexp"/>). Supported flags
12063
+ (see <xref linkend="functions-posix-regexp"/>). Supported flags
12065
12064
are <literal>i</literal>, <literal>s</literal>, <literal>m</literal>,
12066
- <literal>x</literal> and <literal>q</literal>.</entry>
12065
+ <literal>x</literal>, and <literal>q</literal>.</entry>
12067
12066
<entry><literal>["abc", "abd", "aBdC", "abdacb", "babc"]</literal></entry>
12068
12067
<entry><literal>$[*] ? (@ like_regex "^ab.*c" flag "i")</literal></entry>
12069
12068
<entry><literal>"abc", "aBdC", "abdacb"</literal></entry>
@@ -12077,7 +12076,7 @@ table2-mapping
12077
12076
</row>
12078
12077
<row>
12079
12078
<entry><literal>exists</literal></entry>
12080
- <entry>Tests whether a path expressionhas at least one SQL/JSON item</entry>
12079
+ <entry>Tests whether a path expressionmatches at least one SQL/JSON item</entry>
12081
12080
<entry><literal>{"x": [1, 2], "y": [2, 4]}</literal></entry>
12082
12081
<entry><literal>strict $.* ? (exists (@ ? (@[*] > 2)))</literal></entry>
12083
12082
<entry><literal>2, 4</literal></entry>
@@ -12302,10 +12301,9 @@ table2-mapping
12302
12301
<row>
12303
12302
<entry><literal>@@</literal></entry>
12304
12303
<entry><type>jsonpath</type></entry>
12305
- <entry>JSON path predicate check result for the specified JSON value.
12306
- Only first result item is taken into account. If there are no results
12307
- or the first result item is not Boolean, then null
12308
- is returned.</entry>
12304
+ <entry>Returns the result of JSON path predicate check for the specified JSON value.
12305
+ Only the first item of the result is taken into account. If the
12306
+ result is not Boolean, then <literal>null</literal> is returned.</entry>
12309
12307
<entry><literal>'{"a":[1,2,3,4,5]}'::jsonb @@ '$.a[*] > 2'</literal></entry>
12310
12308
</row>
12311
12309
</tbody>
@@ -12943,7 +12941,7 @@ table2-mapping
12943
12941
<row>
12944
12942
<entry>
12945
12943
<para><literal>
12946
- jsonb_path_exists(target jsonb, path jsonpath [, vars jsonb, silent bool])
12944
+ jsonb_path_exists(target jsonb, path jsonpath [, vars jsonb [ , silent bool] ])
12947
12945
</literal></para>
12948
12946
</entry>
12949
12947
<entry><type>boolean</type></entry>
@@ -12968,10 +12966,9 @@ table2-mapping
12968
12966
</entry>
12969
12967
<entry><type>boolean</type></entry>
12970
12968
<entry>
12971
- Returns JSON path predicate result for the specified JSON value.
12972
- Only first result item is taken into account. If there are no results
12973
- or the first result item is not Boolean, then null
12974
- is returned.
12969
+ Returns the result of JSON path predicate check for the specified JSON value.
12970
+ Only the first item of the result is taken into account. If the
12971
+ result is not Boolean, then <literal>null</literal> is returned.
12975
12972
</entry>
12976
12973
<entry>
12977
12974
<para><literal>
@@ -13178,18 +13175,18 @@ table2-mapping
13178
13175
<note>
13179
13176
<para>
13180
13177
The <literal>jsonb_path_exists</literal>, <literal>jsonb_path_match</literal>,
13181
- <literal>jsonb_path_query</literal>, <literal>jsonb_path_query_array</literal> and
13178
+ <literal>jsonb_path_query</literal>, <literal>jsonb_path_query_array</literal>, and
13182
13179
<literal>jsonb_path_query_first</literal>
13183
13180
functions have optional <literal>vars</literal> and <literal>silent</literal>
13184
13181
arguments.
13185
13182
</para>
13186
13183
<para>
13187
- If the <literal >vars</literal > argument is specified, it provides an
13184
+ If the <parameter >vars</parameter > argument is specified, it provides an
13188
13185
object containing named variables to be substituted into a
13189
13186
<literal>jsonpath</literal> expression.
13190
13187
</para>
13191
13188
<para>
13192
- If the <literal >silent</literal > argument is specified and has the
13189
+ If the <parameter >silent</parameter > argument is specified and has the
13193
13190
<literal>true</literal> value, these functions suppress the same errors
13194
13191
as the <literal>@?</literal> and <literal>@@</literal> operators.
13195
13192
</para>