@@ -16908,7 +16908,7 @@ $ ? (@ like_regex "^\\d+$")
16908
16908
<itemizedlist>
16909
16909
<listitem>
16910
16910
<para>
16911
- <xref linkend="functions-jsonscalar"/ >
16911
+ <link linkend="functions-jsonscalar"><literal>JSON_SCALAR</literal></link >
16912
16912
</para>
16913
16913
</listitem>
16914
16914
<listitem>
@@ -16933,31 +16933,27 @@ $ ? (@ like_regex "^\\d+$")
16933
16933
</listitem>
16934
16934
</itemizedlist>
16935
16935
16936
- <refentry id="functions-jsonscalar">
16937
- <refnamediv>
16938
- <refname>JSON_SCALAR</refname>
16939
- <refpurpose>create a JSON scalar</refpurpose>
16940
- </refnamediv>
16936
+ <sect4 id="functions-jsonscalar">
16937
+ <title><literal>JSON_SCALAR</literal></title>
16938
+ <indexterm><primary>json_scalar</primary></indexterm>
16941
16939
16942
- <refsynopsisdiv>
16943
16940
<synopsis>
16944
16941
<function>JSON_SCALAR</function> (
16945
16942
<parameter>expression</parameter>
16946
16943
<optional> RETURNING <replaceable class="parameter">json_data_type</replaceable> </optional>
16947
16944
)
16948
16945
</synopsis>
16949
- </refsynopsisdiv>
16950
16946
16951
- <refsect1 >
16947
+ <sect5 >
16952
16948
<title>Description</title>
16953
16949
16954
16950
<para>
16955
16951
<function>JSON_SCALAR</function> function generates a scalar
16956
16952
<acronym>JSON</acronym> from a <acronym>SQL</acronym> data.
16957
16953
</para>
16958
- </refsect1 >
16954
+ </sect5 >
16959
16955
16960
- <refsect1 >
16956
+ <sect5 >
16961
16957
<title>Parameters</title>
16962
16958
<variablelist>
16963
16959
<varlistentry>
@@ -16991,18 +16987,18 @@ $ ? (@ like_regex "^\\d+$")
16991
16987
</listitem>
16992
16988
</varlistentry>
16993
16989
</variablelist>
16994
- </refsect1 >
16990
+ </sect5 >
16995
16991
16996
- <refsect1 >
16992
+ <sect5 >
16997
16993
<title>Notes</title>
16998
16994
<para>
16999
16995
Alternatively, you can construct <acronym>JSON</acronym> objects by
17000
16996
using <productname>PostgreSQL</productname>-specific
17001
16997
<function>to_json()</function>/<function>to_jsonb()</function> functions.
17002
16998
See <xref linkend="functions-json-creation-table"/> for details.
17003
16999
</para>
17004
- </refsect1 >
17005
- <refsect1 >
17000
+ </sect5 >
17001
+ <sect5 >
17006
17002
<title>Examples</title>
17007
17003
<para>
17008
17004
Construct a JSON from the provided values various types:
@@ -17026,8 +17022,8 @@ SELECT JSON_SCALAR(true);
17026
17022
true
17027
17023
(1 row)
17028
17024
</screen>
17029
- </refsect1 >
17030
- </refentry >
17025
+ </sect5 >
17026
+ </sect4 >
17031
17027
17032
17028
<sect4 id="functions-jsonobject">
17033
17029
<title><literal>JSON_OBJECT</literal></title>
0 commit comments