Skip to content

Head Elements Sorting #543

@Kostya1

Description

@Kostya1

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?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions