Getting nested JSON in Go?

In the Go standard library has a module for working with JSON, that's fine.

But here is the thing - very often JSON is nested and it is not always done with the mind, as an example:
{
 "followers": {
 "count": 999
}
}

That is, in this case the use of the nested values are not really justified, but it is nothing to do.

The question is - can I use tag in the json struct to receive such nested values? `json:"followers.count"` or something like that.
Yes, it is possible to use nested structures, but there is a question of aesthetics, beauty and so magical pieces, as to keep the structure the structure for one field is somehow not necessary.
June 27th 19 at 15:22
2 answers
June 27th 19 at 15:24
Solution
no
June 27th 19 at 15:26
Solution
In the standard Liebe such, but there are many other lib that can do that , for example https://github.com/antonholmquist/jason/

However, in nested structures, nothing bad just did not see, well it's not classes as in other languages where it was used too.
As written - as a fact once already annoying, morally so to speak :)
Had to get around, first to load in json interface, and then the display all in a neat structure. - Nicholaus.Pur commented on June 27th 19 at 15:29

Find more questions by tags GoJSON