Exporting sorts the field names in JSON file

Dee Man shared this problem 5 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.

This comment is in trash! Restore
photo
1

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

This comment is in trash! Restore
photo
1

Resolved in 5.2.12

This comment is in trash! Restore
photo
1

Verified that it's fixed in 5.2.12.

This comment is in trash! Restore
Leave a Comment
 
Attach a file
You can't vote. Please authorize!