Skip to content

Instantly share code, notes, and snippets.

<?php
header('Content-Type: application/json');
$callback = isset($_GET['callback']) ? $_GET['callback'] : false;
$output = array(
'some' => 'data'
);
$output = json_encode($output);