0

I am getting this response, which I don't know how to handle without an array:

{
    "1": {
        "entity_id": "1",
        "attribute_set_id": "4",
        "type_id": "simple"
    },
    "2": {
        "entity_id": "2",
        "attribute_set_id": "4",
        "type_id": "simple"
    },
    "5": {
        "entity_id": "5",
        "attribute_set_id": "4",
        "type_id": "simple"
    }
}

Suggestions appreciated.

admdrew
  • 3,790
  • 4
  • 27
  • 39

1 Answers1

0

http://www.tutorialspoint.com/android/android_json_parser.htm

Just go through this for JSON Parsing.

you have get JsonObject like

JSONObject result=new JSONObject("your result"); //your json value as parameter
JsonObject obj= originalObject.getString("1");
Supriya
  • 1,078
  • 1
  • 8
  • 16