Обсуждение: [Bug report] JSON(B) field display not preserving order of object keys

Поиск
Список
Период
Сортировка

[Bug report] JSON(B) field display not preserving order of object keys

От
Bern Ochoa
Дата:
When displaying the data of JSON(B)-typed columns on the Data Output tab, if the data contains an object, the native order of the keys is not preserved.

As a Python developer myself, I strongly suspect this is because the database data is being loaded internally as a regular dict object instead of the OrderedDict instance that would be required to preserve key order.

Re: [Bug report] JSON(B) field display not preserving order of object keys

От
Khushboo Vashi
Дата:


On Fri, Sep 7, 2018 at 2:00 PM, Bern Ochoa <dologan@gmail.com> wrote:
When displaying the data of JSON(B)-typed columns on the Data Output tab, if the data contains an object, the native order of the keys is not preserved.

As a Python developer myself, I strongly suspect this is because the database data is being loaded internally as a regular dict object instead of the OrderedDict instance that would be required to preserve key order.