-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Closed
Labels
kind: questionrelease item: ✨ new featuresolution: 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
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind: questionrelease item: ✨ new featuresolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation