You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When inputting/parsing an ordered_json, it does not keep the order found in the file. This is due to the fact that the parser functions use basic_json instead of ordered_json
Please describe the steps to reproduce the issue.
Create an ordered_json
Input a json with its keys not in alphabetical order
Output the ordered_json
The order will not be preserved
Create an ordered_json
Input a json with its keys not in alphabetical order
What is the issue you have?
When inputting/parsing an
ordered_json
, it does not keep the order found in the file. This is due to the fact that the parser functions usebasic_json
instead ofordered_json
Please describe the steps to reproduce the issue.
Create an
ordered_json
Input a json with its keys not in alphabetical order
Output the
ordered_json
The order will not be preserved
ordered_json
ordered_json
Can you provide a small but working code example?
json.json:
What is the expected behavior?
When the json is outputted, it should be exactly the same
And what is the actual behavior instead?
The order is changed to
"a", "b", "c"
Which compiler and operating system are you using?
Which version of the library did you use?
develop
branchIf you experience a compilation error: can you compile and run the unit tests?
The text was updated successfully, but these errors were encountered: