From 78273d48fec2420b039a7c7485d45f86099ba3c5 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Fri, 28 Mar 2014 20:35:32 +0100 Subject: [PATCH] We need to output JSON --- json.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json.php b/json.php index aae9d5d..36e1617 100644 --- a/json.php +++ b/json.php @@ -5,6 +5,6 @@ require_once 'download.php'; if (isset($_GET["url"])) { header('Content-Type: application/json'); $video = VideoDownload::getJSON($_GET["url"]); - echo $video; + echo json_encode($video); } ?>