-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I am not sure if this project is still being maintained, but I'm just starting
out with JSON and found that the tinyjson header was great at getting me up and
running quickly.
According to the "spec" at json.org, objects are unordered sets of name/value
pairs. However, the way I use them, I would like to access them in the order
that they appear. I know I can use an array object but that really clutters up
the syntax (e.g. have to make an array of objects).
One way for doing this, while preserving a compatible interface with std::map,
is to use boost::multi_index. In this way, you can set up a container with
different access methods. In this case, one using the key to return a value as
with std::map, the other with an index that returns a key/value pair. I've used
this fairly extensively and will probably modify the the tinyjson.hpp header
myself. But I was wondering if this is something that would also be interesting
for you.
Cheers,
Chris
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by csklu...@gmail.com
on 3 May 2012 at 4:19