Here is the output received from the API:
[
{
"order": 0,
"section_menu_id": 3
},
{
"order": 1,
"section_menu_id": 1
}
]
This represents the initial data:
{
"ordering_data": [
{
"order": null,
"section_menu_id": null
}
]
}
Desired output should look like this:
{
"ordering_data": [
{
"order": 0,
"section_menu_id": 3
},
{
"order": 1,
"section_menu_id": 1
}
]
}
Could someone guide me on achieving the expected result? Thank you in advance.