Earlier quoted context omitted.
There’s a huge nuance worth mentioning: with JSONB you lose key ordering in objects. This may be desired - it makes two effectively-equal objects have the same representation at rest! But if you are storing human-written JSON - say, configs from an internal interface, where one might collocate a “__foo_comments” key above “foo” - their layout will be lost, and this may lead to someone visually seeing their changes sc…
JSON processors are not required nor expected to retain object key ordering from either input or object construction order.
When keys are not unique, their order can matter again, and can matter differently to different parsers.