Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 39f577b827
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (16 sloc) 0.444 kb
#include "../json-me.hpp"
#include <iostream>
int main(int argc,char **argv) {
jsonme::JsonMeLib jsonlib;
try {
jsonme::Node rootnode=jsonlib.parseFile("example.json");
size_t numberofclients=rootnode["gateways"].size();
if (numberofclients == 2) {
return 0;
}
std::cerr << numberofclients << " found while 1 expected" << std::endl;
return 1;
} catch (jsonme::ParseError &e) {
return 1;
}
};
Jump to Line
Something went wrong with that request. Please try again.