java - How to Parse GSON data into ArrayList<E> -
i have done following,
arraylist<arraylist<gamemodel>> list = gson.fromjson(response, new typetoken<arraylist<arraylist<gamemodel>>>() {}.gettype()) its giving me error message.
error creating evaluation class loader: com.intellij.debugger.engine.evaluation.evaluateexception: method threw 'java.lang.nullpointerexception' exception.
although response have data, able parse data in java objects doing following, unable pass in arraylist
gamemodel gammodel= gson.fromjson(response, gamemodel.class); kindly guide me how pass data in arraylist
Comments
Post a Comment