I know there are many JSON with GSON questions but none of them relate to me directly. My JSON is formatted differently.
I have a JSON data I want to parse using GSON wh
Some times we get JsonArray [ {..} , {..} ] as a response (without 'itemArray' name like yours) In that case you can use following code
JsonArray [ {..} , {..} ]
'itemArray'
Type fooType = new TypeToken>() {}.getType(); List array = new Gson().fromJson(response, fooType);
find more about this Official doc - Gson Array-Examples