Head Elements Sorting #543
Labels
kind: question
release item: ✨ new feature
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Milestone
I need to make a json from iarray. I'm doing it like you in your example
json j;
j["pi"] = 3.141;
j["happy"] = true;
So, result json in this example will be:
{
"happy": true,
"pi": 3.141
}
The keys are sorted alphabetically. But I need
But I want make json like this
{
"pi": 3.141,
"happy": true
}
How can I make the keys in the same order as I add them?
The text was updated successfully, but these errors were encountered: