encoding/json: Unmarshal and special character tag #10677
The below json demarshalling code will not detect the
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:
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)
Thanks for the help