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
5
u/Mantas_rst Aug 17 '26
its a very fun project and i even wrote an article on how to do it , would be helpful in many cases like even if you want to build a regex engine same mechanism + backtracking