2021-08-13 23:24:36 +08:00
|
|
|
#include <iostream>
|
2020-12-25 06:59:58 +08:00
|
|
|
#include "simdjson.h"
|
|
|
|
using namespace simdjson;
|
|
|
|
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;
|
|
|
|
}
|