From f7d1aa166e9f3006e17399c7dd0c236386abc4d7 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Thu, 29 Dec 2016 03:55:04 +0100 Subject: force objects in json --- view/streams-json-v2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view/streams-json-v2.php') diff --git a/view/streams-json-v2.php b/view/streams-json-v2.php index 524f2db..1fad78f 100644 --- a/view/streams-json-v2.php +++ b/view/streams-json-v2.php @@ -102,4 +102,4 @@ foreach (Conferences::getActiveConferences() as $conference) ); } -echo json_encode($struct, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE); +echo json_encode($struct, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_FORCE_OBJECT); -- cgit v1.2.3