Pretty-printing the output of JsonFormat.

This commit is contained in:
teromene@teromene.fr 2016-02-19 16:15:06 +00:00
parent 9153071a0e
commit 26e02ef3b6

View file

@ -11,7 +11,7 @@ class JsonFormat extends FormatAbstract{
// FIXME : sometime content can be null, transform to empty string // FIXME : sometime content can be null, transform to empty string
$datas = $this->getDatas(); $datas = $this->getDatas();
return json_encode($datas); return json_encode($datas, JSON_PRETTY_PRINT);
} }
public function display(){ public function display(){