@@ -11574,7 +11574,7 @@ table2-mapping
11574
11574
11575
11575
<para>JSON query functions and operators
11576
11576
pass the provided path expression to the <firstterm>path engine</firstterm>
11577
- for evaluation. If the expression matches the JSON data to be queried ,
11577
+ for evaluation. If the expression matches the queried JSON data,
11578
11578
the corresponding SQL/JSON item is returned.
11579
11579
Path expressions are written in the SQL/JSON path language
11580
11580
and can also include arithmetic expressions and functions.
@@ -11634,7 +11634,7 @@ table2-mapping
11634
11634
11635
11635
<para>
11636
11636
If the item to retrieve is an element of an array, you have
11637
- to unnest this array using the [*] operator. For example,
11637
+ to unnest this array using the <literal> [*]</literal> operator. For example,
11638
11638
the following path will return location coordinates for all
11639
11639
the available track segments:
11640
11640
<programlisting>
@@ -11655,8 +11655,7 @@ table2-mapping
11655
11655
The result of each path evaluation step can be processed
11656
11656
by one or more <type>jsonpath</type> operators and methods
11657
11657
listed in <xref linkend="functions-sqljson-path-operators"/>.
11658
- Each method must be preceded by a dot, while arithmetic and Boolean
11659
- operators are separated from the operands by spaces. For example,
11658
+ Each method name must be preceded by a dot. For example,
11660
11659
you can get an array size:
11661
11660
<programlisting>
11662
11661
'$.track.segments.size()'
@@ -11937,7 +11936,7 @@ table2-mapping
11937
11936
</row>
11938
11937
<row>
11939
11938
<entry><literal>double()</literal></entry>
11940
- <entry>Approximate numeric value converted from a string</entry>
11939
+ <entry>Approximate floating-point number converted from an SQL/JSON number or a string</entry>
11941
11940
<entry><literal>{"len": "1.9"}</literal></entry>
11942
11941
<entry><literal>$.len.double() * 2</literal></entry>
11943
11942
<entry><literal>3.8</literal></entry>
@@ -11966,10 +11965,10 @@ table2-mapping
11966
11965
<row>
11967
11966
<entry><literal>keyvalue()</literal></entry>
11968
11967
<entry>
11969
- Sequence of object's key-value pairs represented as array of objects
11968
+ Sequence of object's key-value pairs represented as array of items
11970
11969
containing three fields (<literal>"key"</literal>,
11971
11970
<literal>"value"</literal>, and <literal>"id"</literal>).
11972
- <literal>"id"</literal> is an unique identifier of the object
11971
+ <literal>"id"</literal> is a unique identifier of the object
11973
11972
key-value pair belongs to.
11974
11973
</entry>
11975
11974
<entry><literal>{"x": "20", "y": 32}</literal></entry>
@@ -12091,9 +12090,9 @@ table2-mapping
12091
12090
<entry><literal>like_regex</literal></entry>
12092
12091
<entry>
12093
12092
Tests pattern matching with POSIX regular expressions
12094
- (<xref linkend="functions-posix-regexp"/>). Supported flags
12093
+ (see <xref linkend="functions-posix-regexp"/>). Supported flags
12095
12094
are <literal>i</literal>, <literal>s</literal>, <literal>m</literal>,
12096
- <literal>x</literal> and <literal>q</literal>.</entry>
12095
+ <literal>x</literal>, and <literal>q</literal>.</entry>
12097
12096
<entry><literal>["abc", "abd", "aBdC", "abdacb", "babc"]</literal></entry>
12098
12097
<entry><literal>$[*] ? (@ like_regex "^ab.*c" flag "i")</literal></entry>
12099
12098
<entry><literal>"abc", "aBdC", "abdacb"</literal></entry>
@@ -12107,7 +12106,7 @@ table2-mapping
12107
12106
</row>
12108
12107
<row>
12109
12108
<entry><literal>exists</literal></entry>
12110
- <entry>Tests whether a path expression has at least one SQL/JSON item</entry>
12109
+ <entry>Tests whether a path expression matches at least one SQL/JSON item</entry>
12111
12110
<entry><literal>{"x": [1, 2], "y": [2, 4]}</literal></entry>
12112
12111
<entry><literal>strict $.* ? (exists (@ ? (@[*] > 2)))</literal></entry>
12113
12112
<entry><literal>2, 4</literal></entry>
@@ -12332,10 +12331,9 @@ table2-mapping
12332
12331
<row>
12333
12332
<entry><literal>@@</literal></entry>
12334
12333
<entry><type>jsonpath</type></entry>
12335
- <entry>JSON path predicate check result for the specified JSON value.
12336
- Only first result item is taken into account. If there are no results
12337
- or the first result item is not Boolean, then null
12338
- is returned.</entry>
12334
+ <entry>Returns the result of JSON path predicate check for the specified JSON value.
12335
+ Only the first item of the result is taken into account. If the
12336
+ result is not Boolean, then <literal>null</literal> is returned.</entry>
12339
12337
<entry><literal>'{"a":[1,2,3,4,5]}'::jsonb @@ '$.a[*] > 2'</literal></entry>
12340
12338
</row>
12341
12339
</tbody>
@@ -12973,7 +12971,7 @@ table2-mapping
12973
12971
<row>
12974
12972
<entry>
12975
12973
<para><literal>
12976
- jsonb_path_exists(target jsonb, path jsonpath [, vars jsonb, silent bool])
12974
+ jsonb_path_exists(target jsonb, path jsonpath [, vars jsonb [ , silent bool] ])
12977
12975
</literal></para>
12978
12976
</entry>
12979
12977
<entry><type>boolean</type></entry>
@@ -12998,10 +12996,9 @@ table2-mapping
12998
12996
</entry>
12999
12997
<entry><type>boolean</type></entry>
13000
12998
<entry>
13001
- Returns JSON path predicate result for the specified JSON value.
13002
- Only first result item is taken into account. If there are no results
13003
- or the first result item is not Boolean, then null
13004
- is returned.
12999
+ Returns the result of JSON path predicate check for the specified JSON value.
13000
+ Only the first item of the result is taken into account. If the
13001
+ result is not Boolean, then <literal>null</literal> is returned.
13005
13002
</entry>
13006
13003
<entry>
13007
13004
<para><literal>
@@ -13208,18 +13205,18 @@ table2-mapping
13208
13205
<note>
13209
13206
<para>
13210
13207
The <literal>jsonb_path_exists</literal>, <literal>jsonb_path_match</literal>,
13211
- <literal>jsonb_path_query</literal>, <literal>jsonb_path_query_array</literal> and
13208
+ <literal>jsonb_path_query</literal>, <literal>jsonb_path_query_array</literal>, and
13212
13209
<literal>jsonb_path_query_first</literal>
13213
13210
functions have optional <literal>vars</literal> and <literal>silent</literal>
13214
13211
arguments.
13215
13212
</para>
13216
13213
<para>
13217
- If the <literal >vars</literal > argument is specified, it provides an
13214
+ If the <parameter >vars</parameter > argument is specified, it provides an
13218
13215
object containing named variables to be substituted into a
13219
13216
<literal>jsonpath</literal> expression.
13220
13217
</para>
13221
13218
<para>
13222
- If the <literal >silent</literal > argument is specified and has the
13219
+ If the <parameter >silent</parameter > argument is specified and has the
13223
13220
<literal>true</literal> value, these functions suppress the same errors
13224
13221
as the <literal>@?</literal> and <literal>@@</literal> operators.
13225
13222
</para>
0 commit comments