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

Commitbe596bc

Browse files
author
Nikita Glukhov
committed
Fix docs structure for JSON_SERIALIZE()
1 parent625b3d0 commitbe596bc

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

‎doc/src/sgml/func.sgml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18464,36 +18464,32 @@ FROM
1846418464
<itemizedlist>
1846518465
<listitem>
1846618466
<para>
18467-
<xref linkend="functions-jsonserialize"/>
18467+
<link linkend="functions-jsonserialize"><literal>JSON_SERIALIZE</literal></link>
1846818468
</para>
1846918469
</listitem>
1847018470
</itemizedlist>
1847118471

18472-
<refentry id="functions-jsonserialize">
18473-
<refnamediv>
18474-
<refname>JSON_SERIALIZE</refname>
18475-
<refpurpose>serialize a JSON data as a string</refpurpose>
18476-
</refnamediv>
18472+
<sect4 id="functions-jsonserialize">
18473+
<title><literal>JSON_SERIALAIZE</literal></title>
18474+
<indexterm><primary>json_serialize</primary></indexterm>
1847718475

18478-
<refsynopsisdiv>
1847918476
<synopsis>
1848018477
JSON_SERIALIZE (
1848118478
<parameter>expression</parameter> <optional> FORMAT JSON <optional> ENCODING UTF8 </optional> </optional>
1848218479
<optional> RETURNING <replaceable class="parameter">data_type</replaceable> <optional> FORMAT JSON <optional> ENCODING UTF8 </optional> </optional> </optional>
1848318480
)
1848418481
</synopsis>
18485-
</refsynopsisdiv>
1848618482

18487-
<refsect1>
18483+
<sect5>
1848818484
<title>Description</title>
1848918485

1849018486
<para>
1849118487
<function>JSON_SERIALIZE</function> function transforms a SQL/JSON value
1849218488
into a character or binary string.
1849318489
</para>
18494-
</refsect1>
18490+
</sect5>
1849518491

18496-
<refsect1>
18492+
<sect5>
1849718493
<title>Parameters</title>
1849818494
<variablelist>
1849918495
<varlistentry>
@@ -18527,17 +18523,17 @@ JSON_SERIALIZE (
1852718523
</listitem>
1852818524
</varlistentry>
1852918525
</variablelist>
18530-
</refsect1>
18526+
</sect5>
1853118527

18532-
<refsect1>
18528+
<sect5>
1853318529
<title>Notes</title>
1853418530
<para>
1853518531
Alternatively, you can construct <acronym>JSON</acronym> values simply
1853618532
using <productname>PostgreSQL</productname>-specific casts to
1853718533
<type>json</type> and <type>jsonb</type> types.
1853818534
</para>
18539-
</refsect1>
18540-
<refsect1>
18535+
</sect5>
18536+
<sect5>
1854118537
<title>Examples</title>
1854218538
<para>
1854318539
Construct a JSON the provided strings:
@@ -18556,8 +18552,8 @@ SELECT JSON_SERIALIZE('{"foo": "bar", "baz": [1, 2, 3]}' RETURNING bytea);
1855618552
(1 row)
1855718553

1855818554
</screen>
18559-
</refsect1>
18560-
</refentry>
18555+
</sect5>
18556+
</sect4>
1856118557

1856218558
</sect3>
1856318559

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp