js

jsoon, a streaming JSON parser and query engine in C

Hacker News

jsoon, a streaming JSON parser and query engine in C

Hi HN. I’ve been working on jsoon, a JSON query engine in one C file. The target use case is large JSON where I only need one or two fields out of the document. It doesn’t build a DOM. It scans for structure, skips subtrees when it can, and stops when it finds the result. The CPU path uses AVX2/ PCLMUL, and there’s also an optional CUDA path that does structural indexing on the GPU. It has plenty of rough edges. The query language is limited, portability is limited, docs are still thin, and I would not treat it as a general-purpose replacement for simdjson, yyjson, or RapidJSON. The benchmark numbers also need caveats. On selective queries jsoon can bail out early, while those libraries are doing full parsing and validation. So the large speedups are mostly about workload and architecture, not a claim that this is just a better JSON parser. Posting because I think the implementation is interesting and I’d rather get criticism now than after spending more time on it. I’d especially like feedback on correctness, the SIMD/CUDA approach, and whether the benchmarks are framed in a fair way.

Share card

Actual performance

3points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Missing: mac, agents, macos
54%54% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
TrustMRRLess likely to generate early MRR · Strong signals: way · Missing: mobile apps, ios, personal
49%49% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Indie HackersIH features products with proven revenue · Missing: supports, reddit linkedin, podcasting
45%45% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: io · Missing: https docs, excited, just released
38%38% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Strong signals: soon · Missing: plus, platform, intuitive
31%31% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
16%16% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
1%1% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Jw
Jwalk, a Streaming JSON Parser for Unix54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Jwalk, a Streaming JSON Parser for Unix

Hacker News2
li
liblaxjson - a relaxed streaming JSON parser C library48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

liblaxjson - a relaxed streaming JSON parser C library

Hacker News1
li
liblaxjson - a relaxed streaming JSON parser C library48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

liblaxjson - a relaxed streaming JSON parser C library

Hacker News1
St
Strace to JSON parser43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Strace to JSON parser

Hacker News1
I
I wrote a lovely JSON parser in ANSI-C47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I wrote a lovely JSON parser in ANSI-C

Hacker News1
JS
JSON Parser in C55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

JSON Parser in C

Hacker News7
Pa
Parson, lighweight json parser in C43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Parson, lighweight json parser in C

Hacker News46
Br
Brackit – a retargetable JSONiq based query engine for JSON63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Brackit – a retargetable JSONiq based query engine for JSON

Hacker News2
In
Incremental JSON parser for streaming LLM tool calls in Ruby60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Incremental JSON parser for streaming LLM tool calls in Ruby

Hacker News13
Pa
Partial-zod – streaming JSON parser for LLMs (zero deps, Zod-native)53%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Partial-zod – streaming JSON parser for LLMs (zero deps, Zod-native)

Hacker News1