I need to model a JSon in C++. Firstly I thought about:
boost::property_tree
But unfortunately - it does not care about JSon types. Integers are represented as strings - and it is not an option.
The second idea would be:
boost::variant with recursive_wrapper
Which looks quite promising.
What kind of approach could you recommend? Do you know better approaches? It looks like a common problem, so there have to be a lot of well tested solutions.
I'm unfamiliar with C++ JSon libraries. If you could recommend any - I would be grateful as well.