I'm having an issue with rest_ws, I am trying to send an object with jQuery JSONp AJAX request, but Servoy converts it to a single array property
e.g.
this is the object i am trying to send
- Code: Select all
data = {
'lines' :{
1:{
'product_code' : '640',
'qty' : '3',
'price_sales' : '25',
},
2:{
'product_code' : '641',
'qty' : '5',
'price_sales' : '40',
}
}
};
this is my callback
- Code: Select all
"lines[1][product_code]" : 640
"lines[1][qty]" : 3
"lines[1][price_sales]" : 25
"lines[2][product_code]" : 641
"lines[2][qty]" : 5
"lines[2][price_sales]" : 40
Is there someone who has find the solution for this problem