My Oracle Support Banner

Is it possible to maintain key order in a JSON document (Doc ID 2908058.1)

Last updated on NOVEMBER 28, 2022

Applies to:

MySQL Server - Version 5.7 and later
Information in this document applies to any platform.

Goal

Is it possible to maintain the order of object keys in a JSON field?

For example, the below query results in keys in a different order. Is it possible to maintain the order as in the original?

 

 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.