View Single Post
  #2 (permalink)  
Old 04-26-2008, 02:41 PM
Piro's Avatar
Piro Piro is offline
Junior Member
 
Join Date: Apr 2008
Location: Holland
Posts: 8
Default

You shouldn't send it as a string yourself; this is what the Json helper should do for you.

If you create the following array and pass it to the helper it will generate the output you desire.

PHP Code:
        $data = array(
            
'success'    => true
        
);
        
$this->_helper->json($data); 
Output:
Code:
{"success":true}
Reply With Quote