pantry/projects/github.com/open-source-parsers/jsoncpp/test.cpp
andrejrabcenko 5b2c33b880 new file: projects/github.com/open-source-parsers/jsoncpp/package.yml
new file:   projects/github.com/open-source-parsers/jsoncpp/test.cpp
2023-06-20 09:53:12 -04:00

9 lines
No EOL
253 B
C++

#include <json/json.h>
int main() {
Json::Value root;
Json::CharReaderBuilder builder;
std::string errs;
std::istringstream stream1;
stream1.str("[1, 2, 3]");
return Json::parseFromStream(builder, stream1, &root, &errs) ? 0: 1;
}