josdejong / jsoneditor

A web-based tool to view, edit, format, and validate JSON
http://jsoneditoronline.org
Apache License 2.0
11.53k stars 2.04k forks source link

reordering of fields #1606

Closed akshitasinghal1999 closed 2 weeks ago

akshitasinghal1999 commented 1 month ago

HI, in tree mode, after I import a JSON file, the order of the key value pairs get jumbled without any set pattern. I have tried to use sortObjectKeys={false} but it doesnt seem to be the root cause. Could you help me with the same please. Thanks.

josdejong commented 1 month ago

Can you give an example of a document that has the order of the keys changed when loading it into the editor?

akshitasinghal1999 commented 1 month ago

image (1) In this image, the first file's field are jumbled randomly.

josdejong commented 1 month ago

So, how can I reproduce your issue?

akshitasinghal1999 commented 1 month ago

try to load a big json file to the editor, and verify the order of the fields.

josdejong commented 1 month ago

I have opened a big json file and I do not see changes in the order of the fields. I can only look into this when I can reproduce the issue. Please share a JSON document where the reordering of fields happens, tell me which fields are reordered in the document. Also: what browser are you using?

josdejong commented 2 weeks ago

Closing due to a lack of response. Please reopen if still relevant.