Movatterモバイル変換


[0]ホーム

URL:


November 13, 2025: PostgreSQL 18.1, 17.7, 16.11, 15.15, 14.20, and 13.23 Released!
Supported Versions:Current (18) /17 /16 /15 /14
Development Versions:devel
Unsupported versions:13 /12 /11 /10 /9.6 /9.5 /9.4 /9.3 /9.2
This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for thecurrent version, or one of the other supported versions listed above instead.
PostgreSQL 9.2.24 Documentation
PrevUpChapter 9. Functions and OperatorsNext

9.15. JSON Functions

Table 9-40 shows the functions that are available for creating JSON (seeSection 8.14) data.

Table 9-40. JSON Support Functions

FunctionDescriptionExampleExample Result
array_to_json(anyarray [, pretty_bool])Returns the array as JSON. A PostgreSQL multidimensional array becomes a JSON array of arrays. Line feeds will be added between dimension 1 elements ifpretty_bool is true.array_to_json('{{1,5},{99,100}}'::int[])[[1,5],[99,100]]
row_to_json(record [, pretty_bool])Returns the row as JSON. Line feeds will be added between level 1 elements ifpretty_bool is true.row_to_json(row(1,'foo')){"f1":1,"f2":"foo"}

PrevHomeNext
XML FunctionsUpSequence Manipulation Functions

[8]ページ先頭

©2009-2025 Movatter.jp