[jQuery] Re: $.ajax isn't parsing JSON object properly

2008-09-12 Thread FrenchiINLA
are you using .net 3.5? in this casse try the following: success: function(rdata) { var obj = rdata.d; for some security reason web service make this way the JSON object On Sep 12, 8:31 am, Namlet <[EMAIL PROTECTED]> wrote: > I'm trying to digest a JSON object returned from an ASP.NET > Webservic

[jQuery] Re: $.ajax isn't parsing JSON object properly

2008-09-12 Thread Namlet
Says undefined, so it's not accessing the properties properly with an rdata.guid for instance. Turns out, I need to eval the string which I couldn't get right at first. I tried eval(rdata); but it failed. However, when I tried eval('(' + rdata + ')') it worked fine! So why is this how I have t

[jQuery] Re: $.ajax isn't parsing JSON object properly

2008-09-12 Thread MorningZ
"I cannot access any properties of the object" Do you get an error? Not sure how to access the values? Something else? The first result is valid JSON (to see, just paste it into the excellent "JSON Viewer" you can download at http://www.codeplex.com/JsonViewer) But you don't provide enough info