Automatically generate Go (golang) struct definitions from example JSON
Automatically generate Go (golang) struct definitions from example JSON
gojson generates go struct definitions from json or yaml documents.
…$ go get github.com/ChimeraCoder/gojson/gojsonAssuming $GOPATH/bin is in your PATH, you can now invoke gojson directly.
$ go get github.com/ChimeraCoder/gojson/gojson$ git clone https://github.com/ChimeraCoder/gojson.git
$ cd gojson
$ go testBuilding CLI
$ go build -o _build/gojson ./gojsonInstalling CLI
$ go install ./gojsonFormatting
$ gofmt -w -e -s -l .github.com/str1ngs/jflect
gojson is free software distributed under Version 3 of the GNU Public License.
As of the time of writing, this is the same license used for gcc (and therefore gccgo), so it is unlikely to restrict use in any way. Note that the GPL does not extend to any output generated by gojson; the GPL only applies to software which includes copies of gojson itself.
No open issues yet, or sync has not completed.