diff options
-rw-r--r-- | index.php | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -303,6 +303,8 @@ for ($i = 0; $i < count($listing); $i++) { </body></html> <?php } else if ($_GET['format'] == "json") { + header("Content-type: application/json"); + echo json_encode($listing); } else if ($_GET['format'] == "raw") { print_r($listing); |