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