0

How can this data be parsed when key is value itself or dynamic not static. Below is the api response JSON format:

"result": {
    "23-05-2019": [
        {
            "date": "23-05-2019",
            "time": "10:00"
        },
        {
            "date": "23-05-2019",
            "time": "12:30"
        },
        {
            "date": "23-05-2019",
            "time": "17:00"
        }
    ],
    "25-05-2019": [
        {
            "date": "25-05-2019",
            "time": "11:00"
        },
        {
            "date": "25-05-2019",
            "time": "09:30"
        },
        {
            "date": "25-05-2019",
            "time": "05:00"
        }
    ]
}

In above response, result contains "23-05-2019" as key through which i need to access the array. Please guide.

iPhone 7
  • 1,731
  • 1
  • 27
  • 63

0 Answers0