I have a JSON response and I want to order by it which starts with specific words or letter.
I need it to sort ItenaryFor which starts with "ItenaryFor": "Sightseen"
please check below JSON response from API.
here is my JSON:
{
"resultCode": 1,
"resultData": {
"Itinary": [
{
"ItenaryFor": "Transfer",
"Icon": "motel",
"Comment": null,
"Iscustomsave": true,
"TourDelight": "Phi Phi Island, Phuket City Tour",
"BackgroundImg": ""
},
{
"ItenaryFor": "Sightseen",
"Icon": "holiday",
"Comment": null,
"Iscustomsave": true,
"TourDelight": "Phi Phi Island, Phuket City Tour",
"BackgroundImg": ""
},
{
"ItenaryFor": "Sightseen",
"Icon": "holiday",
"Comment": null,
"Iscustomsave": true,
"TourDelight": "Phi Phi Island, Phuket City Tour",
"BackgroundImg": ""
},
{
"ItenaryFor": "Hotel",
"Icon": "motel",
"Comment": null,
"Iscustomsave": true,
"TourDelight": "Phi Phi Island, Phuket City Tour",
"BackgroundImg": ""
},
{
"ItenaryFor": "Hotel",
"Icon": "motel",
"Comment": null,
"Iscustomsave": true,
"TourDelight": "Phi Phi Island, Phuket City Tour",
"BackgroundImg": ""
},
{
"ItenaryFor": "Hotel",
"Icon": "motel",
"Comment": null,
"Iscustomsave": true,
"TourDelight": null,
"BackgroundImg": null
},
{
"ItenaryFor": "Sightseen",
"Icon": "holiday",
"Comment": null,
"Iscustomsave": true,
"TourDelight": "Coral Island",
"BackgroundImg": ""
},
{
"ItenaryFor": "Hotel",
"Icon": "motel",
"Comment": null,
"Iscustomsave": true,
"TourDelight": "Coral Island",
"BackgroundImg": null
}
]
}
}
Please give me suggestions.