Eli Perelman ha scritto:
Here is an example response:
///////////////////////////////////////////////////////////
{ "detail" : [{"id" : "1","useraccount" : "Alisa","datestamp" :
"2008-11-28 00:00:00","companyname" : "Allianz Life Insurance
Company","officephone" : "8779744653","officephoneext" :
"","officefax" : "7635826004","address1" : "5701 Golden Hills
Dr.","address2" : "","city" : "Minneapolis","state" : "MN","zipcode" :
"554161297","contactperson" : "","contactemail" : "","contactcellph" :
"","webaddress" : "","notes" : "","path" : "r:\images\horizontal
\allianz.gif","verticalpath" : "r:\images\vertical
\allianz_vert.gif","accountid" : "1"}]}
///////////////////////////////////////////////////////////
What method are you using to create the json response?

I use php, and with json_encode (php5) or the pear package (php4) when you create a json response this is automatically escaped.

Then, for example :

http://www.google.com/

becomes :

http:\/\/www.google.com\/

and when my object is automatically evaluated by jquery if I alert my url I can see it without backslashes..

I think the problem is only this one :-)

Bye


--
gianiaz.net - web solutions
via piedo, 58 - 23020 tresivio (so) - italy
+39 347 7196482

Reply via email to