Show HN: I built a JSON and JSON5 parser with MISRA C conformance

railgunlabs.com

6 points by hgs3 10 hours ago

Hello everyone. I built Judo: a JSON(5) parser with MISRA C conformance.

For those who don't know, JSON5 is an unofficial extension of JSON that incorporates features from ECMAScript 5.1 (ES5). I designed Judo to be customizable, so you can stick with standard JSON if you'd prefer.

About me: I'm a solo developer and I quit my Big Corp job to pursue my passion for software development. Judo is my 5th commercial release.

jbreckmckye 10 hours ago

Really interesting, I wonder how fast this parser is.

What are the contexts where I need a MISRA C package for parsing JSON? Just embedded systems or can you see a wider usecase?

  • hgs3 10 hours ago

    Embedded systems are the primary use case, but any safety critical system would presumably want this.

    My focus wasn't speed, but rather high-assurance. On a resource-constrained embedded system, you're likely not working with huge JSON structures. The scanner processes JSON incrementally, so if memory pressure is a concern, you can do your processing in small, incremental chunks.