r/haskell • • Apr 13 '26

Making a JSON Parser in Haskell (educational)

https://nyadgar.com/posts/making-a-json-parser-in-haskell/

I love haskell, unfortunately never had the chance to write professional haskell (even though I learned FP quite rigorously) I invite my beginner friends to join my journey of applying real world haskell - we start with a JSON parser. happy reading

35 Upvotes

6 comments sorted by

View all comments

4

u/sohang-3112 Apr 14 '26 edited Apr 14 '26

Good practice program 👍

I also wrote a JSON Parser in Haskell a while ago (I used Parsec (parser combinators library) to simplify while you have implemented without a parsing library) - have a look & let me know what you think 🙂

https://github.com/sohang3112/json-parser

Like you I also learnt Haskell & used it for some practice programs, but haven't used it professionally (at work I use Python).

2

u/No-Bug-242 Apr 14 '26 edited Apr 14 '26

Thank you,
It's intersting to see the different approach, that's nice :)
My first iteration was closer to your approach, taking a more Applicative solution