From 02fb25f64021afde4f48699b54168b6816d8cb1e Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sun, 5 Apr 2015 18:13:44 +0200 Subject: Pretty-Print JSON (requires PHP 5.4 – whatever…) --- view/schedule-json.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/schedule-json.php b/view/schedule-json.php index b6fdfe5..9aea603 100644 --- a/view/schedule-json.php +++ b/view/schedule-json.php @@ -10,4 +10,4 @@ if($conference->isClosed()) echo '{}'; else - echo json_encode($schedule->getSchedule()); + echo json_encode($schedule->getSchedule(), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE); -- cgit v1.2.3