JSON Formatter CLI
- Posted on
Recently, I’ve deployed some projects using KrakenD as an API Gateway.
The problem is the output JSON config is not formatted, that’s hard to debug the configuration in the future.
As a developer, I want the configuration will be formatted or minified (production environment), so our team can debug if there is any problem.
I searched on the internet but there is no command line Go CLI application that I can use in our GitHub workflows. So I decided to built it.
jsonfmt is built with:
jsonfmt is built on top of ansidev/json-pretty which is forked from tidwall/pretty by Josh Baker.