I realize this has probably been asked a hundred times but I have searched a lot and can't find specifically what I'm looking for.
Here is what I'd like. Given a string data
, I'd like to deserialize into an object obj
that doesn't have all the fields predefined. I'd like to just be able to ask for the fields I want such as obj.getString("stringFieldName")
or obj.getInt("intFieldName")
. I already have gson being used for other things so if it is possible with gson that would be great although not opposed to using another library.