On Thu, May 8, 2008 at 9:21 AM, KG <[EMAIL PROTECTED]> wrote:

>
> When I call this web service from a $.ajax call I can't get at the
> values of the json object and i notice in firebug that the response is
> now :
>
> {"d":"{\"City\":\"nyc\",\"Country\":\"usa\",\"PostalCode\":null,\"State
> \":null,\"Street\":null}"}


That right there looks like the problem. Your object is encoded in a string,
instead of simply

{"d": { "City":"nyc", "Country":"usa", "PostalCode": null, "State": null,
"Street": null} }

or

{ "City":"nyc", "Country":"usa", "PostalCode": null, "State": null,
"Street": null}

Notice the escaped quotes ( \" ). Yeah, it's JSON, but it doesn't seem all
that useful if you have to parse/eval it. Don't know if I've helped at all,
but that's where I'd focus.

- Richard

Reply via email to