You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type TargetsResult map[string][]map[string]interface{}
I can access it with
results["result"][0]["@rid"].(string)
Besides this test where the input is a go string (a rune?) I also tested the actual result coming from an http REST response where the header specifically says utf8.
The text was updated successfully, but these errors were encountered:
Yes it appears I was confused by the super specific requirements for the struct tags:
You can not use single quote to make strings (' same key as double quote), only back-quote (` same key as tilde) this gives compilations errors
You can not have a space between the json: and the double quoted tag "@Rid" (no compilation errors, it just does not use it during demarshalling)
go version go1.2.1 linux/amd64
The below json demarshalling code will not detect the
@rid
field.I can not tell what I am doing wrong here, is the @ symbol some kind of utf problem?
If I unmarshal the same sample into the ugly
I can access it with
Besides this test where the input is a go string (a rune?) I also tested the actual result coming from an http REST response where the header specifically says utf8.
The text was updated successfully, but these errors were encountered: