JSON is probably the most used standard file format for storing and transmitting data on the Internet in recent times. It has a simple syntax with only four scalar data types and two composite data types. So, writing a parser for is a great exercise for learning the basics of parsing.

That's exactly what I did: I wrote a JSON from scratch in . Read my post to learn about basics of parsing, nuances of the JSON syntax, and parser combinators and property-based in Haskell: abhinavsarkar.net/posts/json-p

A transition diagram depicting the JSON syntax.
0
2
0

If you have a fediverse account, you can quote this note from your own instance. Search https://fantastic.earth/users/abnv/statuses/112542142040173291 on your instance and quote it. (Note that quoting is not supported in Mastodon.)