mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
10 lines
354 B
C++
10 lines
354 B
C++
#include "simdjson.h"
|
|
using namespace simdjson;
|
|
using namespace simdjson::builtin; // for ondemand
|
|
int main(void) {
|
|
ondemand::parser parser;
|
|
padded_string json = padded_string::load("twitter.json");
|
|
ondemand::document tweets = parser.iterate(json);
|
|
std::cout << uint64_t(tweets["search_metadata"]["count"]) << " results." << std::endl;
|
|
}
|