Hello I need a solution for multiple json post through react native since I'm new in React native. Here is my new json data I need to post
[
{
"rollno": "10",
"typeofattendence": 1
},
{
"rollno": "10021",
"typeofattendence": 0
}
]
Here is my fetch data please note I can post single json data not able to post multiple.Here is my code
body: JSON.stringify({
rollno: this.state.data,
typeofattendence: this.state.value
})` `body: JSON.stringify({
rollno: this.state.data,
typeofattendence: this.state.value
})
Please help me . Here you can see I can post single json object but how i post inside array multiple object . Thanks in advance