Tuesday, March 18, 2014

How to remove element from json web service when using _serialize in Cakephp?

Cakephp _serialize() automatically appends a <response> element when it is used to generate a json web service. This <response> element causes problem for the front-end to parse. How can this <response> element be removed from Cakephp? I am using Cakephp 2.4.5

http://book.cakephp.org/2.0/en/views/json-and-xml-views.html

I asked this question on Stack Overflow but could not get any answers. I wonder if the experts here can give me some advice. Thanks a lot in advance.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: