I have a problem with this response
{
"success": {
"id": 11,
"title": "omar",
"date": "2021-08-13",
"start_time": "12:50:00",
"end_time": "23:00:00",
"end_date_time": "2021-08-13 23:00:00",
"percentage": 10,
"instruction": "asdadffa",
"status": 1,
"is_taken": 0,
"is_closed": 0,
"is_waiting": 0,
"is_running": 0,
"auto_mark": 0,
"active_status": 1,
"created_at": "2021-08-13T12:49:21.000000Z",
"updated_at": "2021-08-13T12:49:43.000000Z",
"class_id": 1,
"section_id": 1,
"subject_id": 2,
"created_by": 1,
"updated_by": 1,
"school_id": 1,
"academic_id": 1
}}
I want to remove the internal brackets {} of success a replace it with []
and here is my ideal response, something like that
{
"success": [
"id": 11,
"title": "omar",
"academic_id": 1
]}
thank you
{}would make it invalid JSON. Why would you want to do that?,the response was big os I cut it off I have updated my question