Replies: 2 comments 1 reply
-
https://github.com/nlohmann/json?tab=readme-ov-file#design-goals
Yes and no. The two actions will stay in the same order as those are array elements, and array elements in JSON are ordered. The This will be stored and dumped like this:
If you need them to stay with https://www.json.org/json-en.html
|
Beta Was this translation helpful? Give feedback.
-
Keen to try. |
Beta Was this translation helpful? Give feedback.
-
Is it a header only impl? If not, seems I missed the build steps somewhere.
Assume I have
"actions": [
{
"response": "Accept",
"delay": 5
},
{
"response": "Accept",
"delay": null
}
],
Will the parser keep the data order? ie. Delay 5 the first object possibly in an array, Delay null is the 2nd conceptually. This will be my first time to learn JSON and the tool.
I'll use the tool on linux platform with GCC. I quickly went through the supported Compiler and seems no big issue?
Beta Was this translation helpful? Give feedback.
All reactions