pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Typo in examples in "8.14.5. jsonb Subscripting"
2+ messages / 2 participants
[nested] [flat]

* Typo in examples in "8.14.5. jsonb Subscripting"
@ 2022-07-07 00:27  PG Doc comments form <noreply@postgresql.org>
  0 siblings, 1 reply; 2+ messages in thread

From: PG Doc comments form @ 2022-07-07 00:27 UTC (permalink / raw)
  To: pgsql-docs@lists.postgresql.org; +Cc: eric.mutta@gmail.com

The following documentation comment has been logged on the website:

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

Towards the end of the section, the code examples given have comments where
the JSON is using single quotes instead of double quotes around the
properties. For example this:

    -- Where jsonb_field was {}, it is now {'a': [{'b': 1}]}

...should use double quotes around the "a" and "b" properties and read as
follows:

    -- Where jsonb_field was {}, it is now {"a": [{"b": 1}]}

Likewise, this:

    -- Where jsonb_field was [], it is now [null, {'a': 1}]

..should use double quotes around the "a" property and read as follows:

    -- Where jsonb_field was [], it is now [null, {"a": 1}]

Many thanks,
Eric Mutta.

PS: hats off to the amazing people who write these docs - the json-related
docs are **incredibly thorough** to the point of being overwhelming! :-)


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Typo in examples in "8.14.5. jsonb Subscripting"
@ 2022-07-11 01:45  Michael Paquier <michael@paquier.xyz>
  parent: PG Doc comments form <noreply@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2022-07-11 01:45 UTC (permalink / raw)
  To: eric.mutta@gmail.com; pgsql-docs@lists.postgresql.org

On Thu, Jul 07, 2022 at 12:27:01AM +0000, PG Doc comments form wrote:
> Towards the end of the section, the code examples given have comments where
> the JSON is using single quotes instead of double quotes around the
> properties. For example this:
> 
>     -- Where jsonb_field was {}, it is now {'a': [{'b': 1}]}
> 
> ...should use double quotes around the "a" and "b" properties and read as
> follows:
> 
>     -- Where jsonb_field was {}, it is now {"a": [{"b": 1}]}

Indeed.  I can see only the two places you are pointing at as being
incorrect.  Will fix.
--
Michael

Attachments:

  [application/pgp-signature] signature.asc (832B, ../../YsuAyTJQpOAx2b3W@paquier.xyz/2-signature.asc)
  download

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2022-07-11 01:45 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-07-07 00:27 Typo in examples in "8.14.5. jsonb Subscripting" PG Doc comments form <noreply@postgresql.org>
2022-07-11 01:45 ` Michael Paquier <michael@paquier.xyz>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox