Skip to content

Instantly share code, notes, and snippets.

@bbl
Created September 14, 2019 08:22
Show Gist options
  • Save bbl/df05d9aae209e7bd3970f80b19294e16 to your computer and use it in GitHub Desktop.
Save bbl/df05d9aae209e7bd3970f80b19294e16 to your computer and use it in GitHub Desktop.
GoLang: Parse json yaml to map[string]interface{}
func main() {
jsonStr := `{"isSchemaConforming":true,"schemaVersion":0,"unknown.0":[{"email_address":"[email protected]"},{"email_address":"[email protected]"}]}`
dynamic := make(map[string]interface{})
json.Unmarshal([]byte(jsonStr), &dynamic)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment