Hi,
Tell me please, how can I use jsoncpp::fields() out of struct?
For example I have a string with JSON and I want to get the fields from this JSON.
int a, b;
std::string str = R"({"a":1,"b":2})";
jsoncpp::fields(str, "a", a, "b", b);
How can I do this?
Thanks.
Hi,
Tell me please, how can I use
jsoncpp::fields()out of struct?For example I have a string with JSON and I want to get the fields from this JSON.
How can I do this?
Thanks.