I have different jsons and don't want to create classes for each.
Is there a way to parse entire json file into Map?
For example:
{
"response": [
{
"id": 1,
"first_name": "Pavel",
"last_name": "Durov",
"screen_name": "durov",
"photo_200_orig": "https://pp.vk.me/c625129/v625129631/34d5e/BkAwjDyPg.jpg"
}
]}
And do like this:
Map map = Gson.fromJson(jsonString, Someclass.class);
long id = map.get("response").get(0).get("id");
Is there a way?