Converting an array to JSON and passing that to asmx
        Posted  
        
            by user96403
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user96403
        
        
        
        Published on 2010-05-03T11:49:49Z
        Indexed on 
            2010/05/03
            12:08 UTC
        
        
        Read the original article
        Hit count: 352
        
Hi.
I am trying to use JSON.stringify() (from json2.js of json[dot]org ) to convert a JavaScript array to JSON string and to pass it to an asmx web method. I use jQuery AJAX.
The call reaches the web method where I take a List <Object> as parameter but I get an empty list there in debug mode.
My JSON string looks like well formed with all data , I even tried having single-quotes and double-quotes(escaped) around the 'names' of the JSON string. Please help.
© Stack Overflow or respective owner