I have this kind of Object, my aim is to convert this nested array of objects into formdata, I wonder what is the best way to get this result?
const prepareRequestBody = {
requestId: requestId,
parts: [{
name:'sssasas',
id:234,
upper:true
},
{
name:'sssasas23',
id:2344,
upper:true
}
],
submitted: false
}