simdjson/examples/quickstart/quickstart.cpp

9 lines
236 B
C++
Raw Normal View History

#include <iostream>
2020-03-30 06:34:56 +08:00
#include "simdjson.h"
2020-03-30 06:34:56 +08:00
int main(void) {
simdjson::dom::parser parser;
simdjson::dom::element tweets = parser.load("twitter.json");
std::cout << tweets["search_metadata"]["count"] << " results." << std::endl;
}