I want to save Json object to a class with variable names same as in Json (Just like what Gson does). My problem to use Gson is, The datatype of the class variable in json changes according to datas available in server. For example, some times, it contains a list of data,and some other time, it contains "" for null. my Gson crashes while dealing with both the cases for a single code.
问问题
345 次