I am using golang to parse a json string:
str:="{...}"
var f interface{}
json.Unmarshal([]byte(str), f)
fmt.Println(f)
While I got nil in the console.
When I change the code to :
json.Unmarshal([]byte(str), &f)
It will print the json string.
What's going on?
10.6kreputation, didn't come here for upvote.