Translates JSON into a Go type definition