- Clone the repo
git clone https://github.com/ndhanushkodi/jsonflattener.git
cd jsonflattener
- Compile
jsonflattener
go build .
jsonflattener
accepts JSON input onstdin
. To run it with the provided example file, run:
cat examplefile | ./jsonflattener
cd jsonflattener
go test ./flatten