Re: [fw-general] Zend_Json and escaping...

2008-12-22 Thread dele454
Thanks Till. :) - dee -- View this message in context: http://www.nabble.com/Zend_Json-and-escaping...-tp21119364p21135055.html Sent from the Zend Framework mailing list archive at Nabble.com.

Re: [fw-general] Zend_Json and escaping...

2008-12-21 Thread till
On Sun, Dec 21, 2008 at 11:58 PM, dele454 wrote: > > Or does javascript ignore the backslash when parsed? > According to the spec you don't have to escape the backslash in JSON, but you can. PHP escapes it. Just put your json string through eval and see -- I think it's removed when you convert t

Re: [fw-general] Zend_Json and escaping...

2008-12-21 Thread dele454
Or does javascript ignore the backslash when parsed? - dee -- View this message in context: http://www.nabble.com/Zend_Json-and-escaping...-tp21119364p21120263.html Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] Zend_Json and escaping...

2008-12-21 Thread dele454
Hi, I used the Zend_Json::encode function to convert a php array to a Json object. But what i realised is that Json seems to be escaping the '/' in the items/properties. I file mappings saved in the db and for each record returned by my model, Json escapes the paths specified: [{"EventID":"144"