Skip to content

Instantly share code, notes, and snippets.

@whitekid
Last active August 29, 2015 14:23
Show Gist options
  • Save whitekid/c9ddc858123e60d8d6c7 to your computer and use it in GitHub Desktop.
Save whitekid/c9ddc858123e60d8d6c7 to your computer and use it in GitHub Desktop.
json_parse.go
var i interface{}
b := []byte(json_data)
json.Unmarshal(b, &i)
v := i.(map[string]interface{})
data := v["data"].(string)
fmt.Printf("data = %v\n", data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment