Not sure if `gson` lib question is correct here. A...
# announcements
i
Not sure if
gson
lib question is correct here. Anyway. My problem: I'm parsing diverse JSON objects which come wrapped in a generic JSON structure. I have a function where I've to "unwrap" the nested objects, i.e. extract them from the generic structure and parse the nested object with a generic type
T
.
h
Try creating your own typeAdapter as inside that you can convert it to specific object depending on some conditions.
i
thanks! I ended parsing the object to
JsonObject
and retrieving the nested object with
fromJsonTree