Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb51dff7

Browse files
committed
doc: Correct jsonpath string literal escapes description
The paragraph describing the JavaScript string literals allowed injsonpath expressions unnecessarily mentions JSON by erroneouslylisting \v as allowed by JSON and mentioning the \xNN and \u{N...}backslash escapes as deviations from JSON when in fact both areaccepted by ECMAScript/JavaScript. Fix this by only referring toJavaScript.Author: Erik Wienhold <ewie@ewie.name>Discussion:https://www.postgresql.org/message-id/flat/1EB17DF9-2636-484B-9DD0-3CAB19C4F5C4@justatheory.com
1 parent0e56b2b commitb51dff7

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

‎doc/src/sgml/json.sgml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -695,21 +695,20 @@ SELECT jdoc->'guid', jdoc->'name' FROM api WHERE jdoc @@ '$.tags[*] == "qui"';
695695
In particular, the way to write a double quote within an embedded string
696696
literal is <literal>\"</literal>, and to write a backslash itself, you
697697
must write <literal>\\</literal>. Other special backslash sequences
698-
include those recognized inJSON strings:
698+
include those recognized inJavaScript strings:
699699
<literal>\b</literal>,
700700
<literal>\f</literal>,
701701
<literal>\n</literal>,
702702
<literal>\r</literal>,
703703
<literal>\t</literal>,
704704
<literal>\v</literal>
705-
for various ASCII control characters, and
706-
<literal>\u<replaceable>NNNN</replaceable></literal> for a Unicode
707-
character identified by its 4-hex-digit code point. The backslash
708-
syntax also includes two cases not allowed by JSON:
705+
for various ASCII control characters,
709706
<literal>\x<replaceable>NN</replaceable></literal> for a character code
710-
written with only two hex digits, and
711-
<literal>\u{<replaceable>N...</replaceable>}</literal> for a character
712-
code written with 1 to 6 hex digits.
707+
written with only two hex digits,
708+
<literal>\u<replaceable>NNNN</replaceable></literal> for a Unicode
709+
character identified by its 4-hex-digit code point, and
710+
<literal>\u{<replaceable>N...</replaceable>}</literal> for a Unicode
711+
character code point written with 1 to 6 hex digits.
713712
</para>
714713

715714
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp