mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 10:35:17 +03:00
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;
|
||
|
}
|