On Thursday, September 14, 2023, PG Doc comments form <
nore...@postgresql.org> wrote:
>
> I observed that arrays inside JSONB preserved order of insertion. An
> explicit line about whether the array order will be preserved or not would
> be helpful.


We don’t take on responsibility for teaching people what json is.  Json
arrays are slotted composite elements where the slots are numerically
indexed.  That, by definition, makes their contents “ordered”.  The fact
that object keys are unordered and that arrays can be object keys is
immaterial to whether the contents of arrays are ordered.

David J.

Reply via email to