A blazingly fast JSON serializing & deserializing library
Opening the entry
Opening the entry
Parsing gigabytes of JSON per second : used by Facebook/Meta Velox, the Node.js runtime, ClickHouse, WatermelonDB, Apache Doris, Milvus, StarRocks
simdjson is a high-performance C++ JSON parsing library that uses SIMD instructions and microparallel algorithms to parse JSON at gigabytes per second. It automatically selects a CPU-tailored parser at runtime with no configuration needed. The library provides full JSON and UTF-8 validation with lossless parsing, and is used in production by major systems including Node.js, ClickHouse, and Meta Velox.
wget https://raw.githubusercontent.com/simdjson/simdjson/master/singleheader/simdjson.h https://raw.githubusercontent.com/simdjson/simdjson/master/singleheader/simdjson.cpp
#include <iostream>
#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;
}simdjson/simdjson is a third-party open-source project, listed here from public GitHub data. ImuTechz did not write it and has not reviewed or security-audited its code. Read the source and its permissions before you install or run it.