JSON to Go Struct

Paste JSON to generate Go types for API responses and data models.

The generated package is dto and the root struct is Foo. Rename them as needed. Numbers are represented as int64 values.

Powered by github.com/ChimeraCoder/gojson. Use the copy button to copy the generated code.

Try this example:
{"a":1}

Feedback