title: Pretty, Tidy JSON output using Zend Framework?
body: <p>I am using the Zend Framework helper for JSON.
  I am returning an array of data from a domain entity using a created method toArray().</p>
  
  <p>Is there a way to change the format from tidy to pretty?</p>
  
  <p>PHP</p>
  
  <pre><code>$data = array(
              "success"=&gt;true,
              "user"=&gt;array($user-&gt;toArray())
              );
  $this-&gt;_helper-&gt;json($data);
  </code></pre>
  
  <p>Body Response:</p>
  
  <pre><code>{"success":true,"user":[{"id":9,"displayName":"joey","firstName":"joe","lastName":"blow","email":"joeblow@yahoo.com","role":"user"}]}
  </code></pre>
  
  <p>To:</p>
  
  <pre><code>{
    "success":true,
    "user": [{
       "id":9, 
       "displayName":"joey",
       "firstName":"joe",
       "lastName":"blow",
       "email":"joeblow@yahoo.com",
       "role":"user"
    }]
  }
  </code></pre>