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
Hi, @gregmarr is right. JSON does not specify an order in which keys of an object are stored. My library uses an std::map, so the perceived order is lexicographically. This is conforming the JSON specification.
If you can implement a container that preserves the order of keys, you could use this one in the linear via template types.
for json: { "b" : "B", "a" : "A" }
The iteration order is by lexical order of keys, but it should be the original order in the json object.
The text was updated successfully, but these errors were encountered: