json

json j2 = {
  {"pi", 3.141},
  {"happy", true},
  {"name", "Niels"},
  {"nothing", nullptr},
  {"answer", {
    {"everything", 42}
  }},
  {"list", {1, 0, 2}},
  {"object", {
    {"currency", "USD"},
    {"value", 42.99}
  }}
};

What happens if you mix a boolean with a map, add all kind of iterators and accessors and make it look like an STL-container? In the best case, you'll get what Niels Lohmann created during the last year.

Whenever you need to talk to JavaScript entities, or want to have some hierarchical, dynamic data structure, Niels' JSON implementation is willing to serve your needs. It needs no further explanation on how to deal with that library, since Niels has made a nice animated gif, linked in here:

JSON for Modern C++

My Use Cases

What I really like

What I don't like

Roman's Rating: 4.7 / 5

Information: