One coding project that I recommend every engineer build at

Arpit Bhayani

Arpit Bhayani

Nov 10, 2025 • 2 min read


One coding project that I recommend every engineer build at least once is to write your own JSON parser that converts the given string into a language-native object, like a dictionary.

Given how common the format is, we take the JSON parsing for granted and never think about how it would have been implemented. Here are broad steps and milestones for you to chase if you want to build one from scratch

  1. understand the JSON specification
  2. create a tokenizer to extract tokens from the given string, using Lex
  3. define the JSON grammar as per the spec using Yacc
  4. handle errors, pretty print, and point them in the provided string
  5. construct the language native object like a dictionary or hashmap
  6. test your JSON implementation for correctness against a test suite like https://lnkd.in/dPEAnF_F

If you are adventurous enough, try not to use Lex and Yacc, but rather write your tokenizer and parser from scratch, specific to just JSON, and not for general-purpose usage.

By building this, you will not only understand how JSON works, but also,

  • why JSON parsing is considered to be slow and expensive
  • the parsing phase of any compiler of any language
  • how interesting these things are under the hood

The project will put your problem-solving skills to the test. If you are planning to build this, all the very best! Hope this project makes you super curious about engineering, computer science, and compilers in general.

Hope this helps.

Arpit Bhayani

Principal Engineer II at Razorpay - building Agent Studio, Ex-staff engg at GCP Memorystore & Dataproc, Creator of DiceDB, ex-Amazon Fast Data, ex-Director of Engg. SRE and Data Engineering at Unacademy. I spark engineering curiosity through my no-fluff engineering videos on YouTube and my courses