Exporting sorts the field names in JSON file

Dee Man shared this problem 3 years ago
Solved

When using the Export to JSON without the mongoexport tool, the resulting JSON file contains a sorted list of fields. I expect the order of fields in the document to persist when exporting (shouldn't sort in ascending order).

Replies (4)

photo
1

Thank you for your feedback. It is true that the order of the exported fields should be the same as the stored ones, and we will solve this problem in the next version.

photo
1

I see the same behavior when importing a JSON file too.

photo
1

Resolved in 5.2.12

photo
1

Verified that it's fixed in 5.2.12.

Leave a Comment
 
Attach a file