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
We use ojson with multiple levels of objects that we then fill with data in code and want to pretty-print them, but the data are printed in reverse order:
Example code:
As you can see the first and second level keys are reversed, only the third level element order is preserved.
I have also tried to first create the upper levels but the output was the same:
Is this how it should work?
What I expected from ojson is to preserve the order of all elements, but it seem that it does not do it.
Can you please check it and help?
I use jsoncons from git master commit c4a77de
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. The ojson::operator[], when creating an object automatically, was incorrectly placing the new object at the beginning of its parent. This has been fixed on master.
We use ojson with multiple levels of objects that we then fill with data in code and want to pretty-print them, but the data are printed in reverse order:
Example code:
The result is:
As you can see the first and second level keys are reversed, only the third level element order is preserved.
I have also tried to first create the upper levels but the output was the same:
Is this how it should work?
What I expected from ojson is to preserve the order of all elements, but it seem that it does not do it.
Can you please check it and help?
I use jsoncons from git master commit c4a77de
The text was updated successfully, but these errors were encountered: