Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.16 KB

readme.md

File metadata and controls

45 lines (31 loc) · 1.16 KB

go-flatten

Really simple library and demo app to flatten JSON into dot notation. Forked from Nick Glynn

GoDoc GoCard Build

Getting Started

Simple stuff - use go get and it will also install the flatten demo app.

go get -u github.com/cameronnewman/go-flatten/...
$ flatten -s simple.json -w foo.txt
$ flatten -s simple.json
sample.someitem.thesearecool.1.eggs false
sample.someitem.thesearecool.1.neat tubular
sample.someitem.thesearecool.0.neat wow
sample.someitem.thesearecool.1.sausage true

You can use the library as you see fit. Not sure how useful it will be tho :D

Issues

  • None

License

MIT Licensed