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() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -