@@ -18464,36 +18464,32 @@ FROM
18464
18464
<itemizedlist>
18465
18465
<listitem>
18466
18466
<para>
18467
- <xref linkend="functions-jsonserialize"/ >
18467
+ <link linkend="functions-jsonserialize"><literal>JSON_SERIALIZE</literal></link >
18468
18468
</para>
18469
18469
</listitem>
18470
18470
</itemizedlist>
18471
18471
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>
18477
18475
18478
- <refsynopsisdiv>
18479
18476
<synopsis>
18480
18477
JSON_SERIALIZE (
18481
18478
<parameter>expression</parameter> <optional> FORMAT JSON <optional> ENCODING UTF8 </optional> </optional>
18482
18479
<optional> RETURNING <replaceable class="parameter">data_type</replaceable> <optional> FORMAT JSON <optional> ENCODING UTF8 </optional> </optional> </optional>
18483
18480
)
18484
18481
</synopsis>
18485
- </refsynopsisdiv>
18486
18482
18487
- <refsect1 >
18483
+ <sect5 >
18488
18484
<title>Description</title>
18489
18485
18490
18486
<para>
18491
18487
<function>JSON_SERIALIZE</function> function transforms a SQL/JSON value
18492
18488
into a character or binary string.
18493
18489
</para>
18494
- </refsect1 >
18490
+ </sect5 >
18495
18491
18496
- <refsect1 >
18492
+ <sect5 >
18497
18493
<title>Parameters</title>
18498
18494
<variablelist>
18499
18495
<varlistentry>
@@ -18527,17 +18523,17 @@ JSON_SERIALIZE (
18527
18523
</listitem>
18528
18524
</varlistentry>
18529
18525
</variablelist>
18530
- </refsect1 >
18526
+ </sect5 >
18531
18527
18532
- <refsect1 >
18528
+ <sect5 >
18533
18529
<title>Notes</title>
18534
18530
<para>
18535
18531
Alternatively, you can construct <acronym>JSON</acronym> values simply
18536
18532
using <productname>PostgreSQL</productname>-specific casts to
18537
18533
<type>json</type> and <type>jsonb</type> types.
18538
18534
</para>
18539
- </refsect1 >
18540
- <refsect1 >
18535
+ </sect5 >
18536
+ <sect5 >
18541
18537
<title>Examples</title>
18542
18538
<para>
18543
18539
Construct a JSON the provided strings:
@@ -18556,8 +18552,8 @@ SELECT JSON_SERIALIZE('{"foo": "bar", "baz": [1, 2, 3]}' RETURNING bytea);
18556
18552
(1 row)
18557
18553
18558
18554
</screen>
18559
- </refsect1 >
18560
- </refentry >
18555
+ </sect5 >
18556
+ </sect4 >
18561
18557
18562
18558
</sect3>
18563
18559