Java Reflection and recursive JSON deserializer using Gson


/ Published in: Java
Save to your folder(s)

Change the generic class to whatever class you wish. JSON arrays, types etc, are not handled, you should do that. Purpose of this snippet is to deserialize only needed JSON keys with respect to the class members of your class.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.