How do I read this Generics correctly from JSON?
问题 I'm reasonably confident in my first generics container, but stuck on how to word the casting on the client side. This is what was working before I got involved in learning <T> stuff: CommonNounContainer typeContainer = new Json().fromJson(CommonNounContainer.class, result); I was looking at having to create a different container for each class, and that doesn't seem like good design. Below is my updated, non-working attempt to read in my new generics container: JSONContainer<CommonNoun>