kazuho / picojson

a header-file-only, JSON parser serializer in C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error in readme; Reading JSON using the pull interface

Ryder17z opened this issue · comments

Reading JSON using the pull interface
https://github.com/kazuho/picojson#reading-json-using-the-pull-interface

std::string json = "[ "hello JSON" ]";
picojson::value v;
std::string err = picojson::parse(v, json);
if (! err.empty()) {
std:cerr << err << std::endl;
}