<?php
/* Generic JSON template */
if (!isset($debug)) {
    header("Pragma: no-cache");
    header("Cache-Control: no-store, no-cache, max-age=0, must-revalidate");
    #header('Content-Type: application/json');
}
echo is_array($json) ? json_encode($json) : $json;
?>