package main import ( "json"; "fmt"; ) type Tweet struct { Text string; } type Timeline struct { Tweets []Tweet; } func main() { s := `{"tweets" : [{"text" : "\u0422\u0443\u043b\u0430"}]}`; var timeline Timeline; json.Unmarshal(s, &timeline); for _, t := range timeline.Tweets { fmt.Printf("Escaped: %s\n", t.Text); } s = `{"tweets" : [{"text" : "Тула"}]}`; json.Unmarshal(s, &timeline); for _, t := range timeline.Tweets { fmt.Printf("Unescaped: %s\n", t.Text); } }