JM: teeny tiny JSON minifier (learning project)

Hi all,

This is my first ever Zig project! It’s a small JSON minifier, called jm. It can read either from stdin or from a file. Currently it’s very naive and simply collapses whitespace outside of any strings enclosed in double quotes, so it works over things like Zon and the like, but I want to eventually make it a customizable JSON formatter/pretty printer, but I couldn’t quite wrap my head around std.json yet… :wink:

Any feedback is certainly welcome, I’m very new to Zig and very much still learning.

2 Likes