mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-06-25 20:34:22 +02:00
Pretty-printing the output of JsonFormat.
This commit is contained in:
@ -11,7 +11,7 @@ class JsonFormat extends FormatAbstract{
|
||||
// FIXME : sometime content can be null, transform to empty string
|
||||
$datas = $this->getDatas();
|
||||
|
||||
return json_encode($datas);
|
||||
return json_encode($datas, JSON_PRETTY_PRINT);
|
||||
}
|
||||
|
||||
public function display(){
|
||||
@ -21,4 +21,4 @@ class JsonFormat extends FormatAbstract{
|
||||
|
||||
return parent::display();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user