Skip to content

Commit e0e3dad

Browse files
committed
Document jsonpath .** accessor with nesting level filter
It appears that some variants of .** jsonpath accessor are undocumented. In particular undocumented variants are: .**{level} .**{lower_level to upper_level} .**{lower_level to last} This commit adds missing documentation for them.
1 parent da71f98 commit e0e3dad

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

doc/src/sgml/json.sgml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,30 @@ SELECT jdoc->'guid', jdoc->'name' FROM api WHERE jdoc @> '{"tags": ["qu
807807
</para>
808808
</entry>
809809
</row>
810+
<row>
811+
<entry>
812+
<para>
813+
<literal>.**{<replaceable>level</replaceable>}</literal>
814+
</para>
815+
<para>
816+
<literal>.**{<replaceable>lower_level</replaceable> to
817+
<replaceable>upper_level</replaceable>}</literal>
818+
</para>
819+
<para>
820+
<literal>.**{<replaceable>lower_level</replaceable> to
821+
last}</literal>
822+
</para>
823+
</entry>
824+
<entry>
825+
<para>
826+
Same as <literal>.**</literal>, but with filter over nesting
827+
level of JSON hierarchy. Levels are specified as integers.
828+
Zero level corresponds to current object. This is a
829+
<productname>PostgreSQL</productname> extension of the SQL/JSON
830+
standard.
831+
</para>
832+
</entry>
833+
</row>
810834
<row>
811835
<entry>
812836
<para>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy