Jump to content

json encoding


brianlange

Recommended Posts

I'm trying to write a zend restful api and am return a json result. Everything works excepts when I am encoding a very large string such as a article with multiple paragraphs. The result is null in this case.  Do I need to do something with the text before performing a json encode.

 

$this->getResponse()
            ->appendBody($this->_helper->json($article));

Link to comment
https://forums.phpfreaks.com/topic/230045-json-encoding/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.