Web service - Parsing multi object with JSONp

Using Servoy to administrate the content of your website? Discuss all webrelated Servoy topics on this forum!

Web service - Parsing multi object with JSONp

Postby oscar.balk » Wed Aug 08, 2012 2:40 pm

Hi Guys,

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
oscar.balk
 
Posts: 2
Joined: Mon Mar 05, 2012 1:40 pm

Return to Web Development

Who is online

Users browsing this forum: No registered users and 7 guests