Public Member Functions | |
json ($data, $keepLayouts=false) |
Definition at line 40 of file Json.php.
json | ( | $ | data, |
$ | keepLayouts = false |
||
) |
Encode data as JSON, disable layouts, and set response header
If $keepLayouts is true, does not disable layouts.
mixed | $data | |
bool | $keepLayouts | NOTE: if boolean, establish $keepLayouts to true|false if array, admit params for Zend_Json::encode as enableJsonExprFinder=>true|false this array can contains a 'keepLayout'=>true|false that will not be passed to Zend_Json::encode method but will be used here |