3 $callback = $_REQUEST['callback'];
5 $callback = explode("?",end(explode("/",$_SERVER['REQUEST_URI'])));
6 $callback = $callback[0];
8 $json = $_REQUEST['json'];
10 echo $callback . '([ {"name": "John", "age": 21}, {"name": "Peter", "age": 25 } ])';
12 echo $callback . '({ "data": {"lang": "en", "length": 25} })';