I am attempting to transform the following JavaScript object:
image_uploads: [
0: {
upload_id: 50,
},
1: {
upload_id: 51,
},
2: {
upload_id: 52,
},
]
Into separate entries using this structure for inclusion in the body of a POST request:
image_uploads[0][upload_id] = 50
image_uploads[1][upload_id] = 51
image_uploads[2][upload_id] = 52
This may involve creating an array of those entries like so:
params: [
"image_uploads[0][upload_id]": 50,
"image_uploads[1][upload_id]": 51,
"image_uploads[2][upload_id]": 52,
]
Thank you!