{
“user_id”: “1”,
“number”: “9”,
“date”: “2023-06-30”,
“items_array”: [
{
“Item_1”: {
“Item_a”: “Text”,
“Item_b”: 60,
“Item_C”: “Long Text.”
}
},
{
“Item_2”: {
“Item_a”: “Text”,
“Item_b”: 60,
“Item_C”: “Long Text.”
}
}
]
}
"user_id": "1",
"number": "9",
"date": "2023-06-30",
"items_array": [<items>]
}
and use format as text on the list you need to generate in the array. In format as text you will be able to complete the json
What did you tried?
Thanks for replying, when I’ve attempted this format, the body is empty when it’s sent to the api
Actually there’s a slight difference to your solution, do you mean “ltem_array”: {
<Item_1>: {
<Item_a>: “Text”,
<item_b>: 60,
<Item_C>: “Long Text.”
}
If you have only one item, it may work. But this is not an array you are sending but an object. An array in JSON is enclosed with square bracket
Okay so would this solutions work?
“ltem_array”: {
[<Item_1>]: {
[<Item_a>]: “Text”,
[<item_b>: 60,
[<Item_C>]: “Long Text.”
}
only if you have 1 item to send everytime and only if the API Server accept that you send directly an object in item_array
Thanks Jici