This is my data,
data = {
"SeatingArrangement": [{
"data": [{"id": 1, "rowName": "a", "seatNo": 0},{ "id": 2,"rowName": "a","seatNo": "a1"}],
"rowName": "a",
}],
"TheatreName": "abc natyadalan",
}
I want to stringify this data and send to API, but in my Fetch.js while stringify this data I'm getting error as,
Unexpected character encountered while parsing value: [. Path 'SeatingArrangement', line 1, position 54.
Solved this issue.
First I did JSON.stringify on SeatingArrangement object and then the whole data object.