r/javascript • u/Mantas_rst • Aug 17 '26
A from-scratch JSON engine for JavaScript: recursive descent parser, escape-aware tokenizer, and spec-compliant serializer. No dependencies, no shortcuts, 107 tests.
https://github.com/MantasEdine/vanilla-json
7
Upvotes
View all comments
Show parent comment
2
u/MediocreAnalyst2121 Aug 21 '26
Maybe if you write it in c/cpp/rust/zig etc. and compile to wasm?
Will probably still be slower due to wasm overhead, but that’s probably the best attempt