-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Closed
Labels
Description
I was wondering if there is a reason that a call to parse on a json object just returns a null json object? The same input seems to parse without issue using the jason::parse call.
For example the following program:
{
std::string input("{\"happy\":true,\"pi\":3.141}");
json j;
j.parse(input);
std::cout << j.dump() << std::endl;
j=json::parse(input);
std::cout << j.dump() << std::endl;
}Results in (osx):
null
{"happy":true,"pi":3.141}Reactions are currently unavailable