JSON/JSONB documentation, aggregate functions

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: alex(dot)denman(at)nih(dot)gov
Subject: JSON/JSONB documentation, aggregate functions
Date: 2022-09-16 20:08:04
Message-ID: 166335888474.659.16897487975376230364@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/14/functions-json.html
Description:

Regarding the Json documentation (9.16.1: processing and creating JSON
data), I would like to suggest that the reference to
json_agg/jsonb_agg/json_object_agg/jsonb_object_agg (section 9.21) be made
more prominent. When looking through the list of json[b] processing
functions, it's really easy to miss the footnote mentioning the aggregate
functions. The list of functions in table 9.47 includes a lot of functions
that are *really*similar in purpose to the json aggregator functions, and
it's easy to assume that anything related to building JSON[B] objects *must*
be listed there. I just spent hours searching for a way to turn one column
of keys and one column of values into a JSONB object (without coercing all
numeric values to json strings), and I can't imagine I'm the only one.

Regards,
Alex Denman

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message PG Doc comments form 2022-09-18 08:44:37 error on „ 38.5. Query Language (SQL) Functions“: a single row is returned
Previous Message Chandler Gonzales 2022-09-16 18:57:25 Clarifying docs on nuance of select and update policies