How to fetch values from JSON response in swift? Here i want to loop the order object values inorder to get the dictionary values based on their key. Can anyone suggest me a solution please.
{
"order": [
"abc",
"def",
"ghi",
],
"posts": {
"abc": {
"id": "abc",
"user_id": "q",
"channel_id": "qwer",
"message": "dsd"
},
"def": {
"id": "def",
"user_id": "w",
"channel_id": "werg",
"message": "Gg"
},
"ghi": {
"id": "ghi",
"user_id": "v",
"channel_id": "bnm",
"message": "Ss"
}
}
}