Java: should make deserialization work with hierarchical JSON classes