Hello!
I'm facing a problem with JSON Object. I have a JSON string:
Code:
{
"total_num_of_post": 3,
"response_from": 0,
"posts": [{
"date_time": "2022-05-15 18:47:35",
"author": "1",
"recipient": "0",
"content": "foo ba",
"num_of_replies": "0",
"important": "0",
"seen_by": ","
}, {
"date_time": "2022-05-15 18:47:31",
"author": "1",
"recipient": "0",
"content": "ba",
"num_of_replies": "0",
"important": "0",
"seen_by": ","
}]
}
I need to get every element (date_time, author, recipient, etc.) in array "posts". How can I achieve this? I think that I'm using the "loop through all sub-objects" wrongly...
Thank you.