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

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

Voice chat over bluetooth between Android & Python (pybluez) -

Integrate jquery-globalize into an ASP.NET Core MVC App -