How do I send nested objects and array of objects using form data in Postman. Let’s say i have the below data:
{
“title”: {
“en”: “Welcome to our restaurant”,
“fr”: “Bienvenue dans notre restaurant”
},
“subtitle”: {
“en”: “Explore our menu”,
“fr”: “Découvrez notre menu”
},
“menu_type”: “lunch”,
“service_availability”: [
{
“day”: “Monday”,
“available”: true
},
{
“day”: “Tuesday”,
“available”: true
},
{
“day”: “Wednesday”,
“available”: false
},
{
“day”: “Thursday”,
“available”: true
},
{
“day”: “Friday”,
“available”: true
},
{
“day”: “Saturday”,
“available”: true
},
{
“day”: “Sunday”,
“available”: false
}
],
“category_ids”: [“1”, “2”, “3”],
“itemIds”: [101, 102, 103],
“modifierGroupIds”: [201, 202],
“description”: “Our restaurant offers a variety of delicious dishes for lunch.”
}
Hi @material-engineer-25. Welcome to the Postman Community.
You can upload a file in your form data in Postman. This includes JSON files.
I don’t need to upload a JSON file. I have to send form data. The data to be sent is mentioned in the original post
Another option you could explore would be to stringify the JSON data and send it as a string. @material-engineer-25
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.