-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Closed
Labels
kind: questionrelease item: ✨ new featuresolution: duplicatethe issue is a duplicate; refer to the linked issue insteadthe issue is a duplicate; refer to the linked issue insteadsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
Milestone
Description
Hi Niels,
Thanks a lot for writing your "JSON for Modern C++".
How do I save the JSON data to file while retaining it's original order (after opening and editing from an existing data.json file) such that the saved objects and their keys are subsequently not sorted alphabetically upon saving the data?
This is how I'd like the json data to be saved to file, as it was originally (not alphabetically sorted):-
However after saving to file, the data ends up alphabetically sorted (below).
Is there a way to prevent the json data being alphabetically sorted?
Much thanks. Greg
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind: questionrelease item: ✨ new featuresolution: duplicatethe issue is a duplicate; refer to the linked issue insteadthe issue is a duplicate; refer to the linked issue insteadsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation

