mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
5b2c33b880
new file: projects/github.com/open-source-parsers/jsoncpp/test.cpp
9 lines
253 B
C++
9 lines
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;
|
|
} |