array_to_json ( anyarray [, boolean] ) → json → jsonConverts an SQL array to a JSON array. The behavior is the same as
to_json except that line feeds will be added between top-level array elements if the optional boolean parameter is true.Converts an SQL array to a JSON array. The behavior is the same as to_json except that line feeds will be added between top-level array elements if the optional boolean parameter is true.
English manual coverage begins with PostgreSQL 7.1. Source history and runtime observations have their own recorded version boundaries.
Reading PG 18·Select a recorded version
to_json except that line feeds will be added between top-level array elements if the optional boolean parameter is true.array_to_json ( anyarray [, boolean] ) → json → jsonConverts an SQL array to a JSON array. The behavior is the same as
to_json except that line feeds will be added between top-level array elements if the optional boolean parameter is true.{"inputs":[{"file":"functions-json.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"060b67147827d70ddcf5948833ddfbeada321366476016c8b8b7d68afda8045c","version":"18.7"},{"file":"functions-json.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"31b98fa7f00387abf441728c31918bfe8b368642bceeb8bba88a73c3fbd607de","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"}Full definition and evidence JSON
center · PostgreSQL 18 · wiki-repair-20261023:255d316243960b202055453c4effa612323cfdfbbfb22eef8e032ff2e44a8f4d
Text language: en · wiki-repair-20261023:255d316243960b202055453c4effa612323cfdfbbfb22eef8e032ff2e44a8f4d