Hacker News new | past | comments | ask | show | jobs | submit login

Shameless plug, but this looks like the exact inverse of gojson[0], which generates code (struct definitions) based on sample JSON.

I originally wrote it when writing a client library to interface with a third-party API; it saves a lot of effort compared to typing out struct definitions manually, and a lot of type assertions compared to using map[string]interface{} everywhere.

[0] https://github.com/ChimeraCoder/gojson




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: