Answer the question
In order to leave comments, you need to log in
How to send object in POST on axios?
And Vue is here despite that from it. But it doesn't really matter.
The question is the following - I have an object, let's say this:
var data = {
'ITEMS': [
{
'id': 174,
'params': {
'param1': [7,12,44],
'param2': 'sold'
}
},
{
'id': 219,
'params': {
'param1': [],
'param3': 1237
}
},
],
'DATE': '24.07.2016',
'TIME': "10:22",
'GEO': {
'ADDRESS': 'Охотный ряд 2',
'LONGITUDE': 0,
'LATITUDE': 0,
},
'PAYSERVICE': 0,
'VAT': false,
'PRICE': 0,
'MESSAGE': '',
'AGENT': 1
}
[
'ITEMS' => [
0 => [
'id' => 174,
'params' => [
'param1' => [0 => 7, 1 => 12, 2 => 44],
'param2' => 'sold'
]
],
// ....
// и так далее
Answer the question
In order to leave comments, you need to log in
The link will provide a complete and detailed answer to this question.
Pysy:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question