Revert fb4445070cd9e06929c7b6f27c10dbf42d4a3367 which is no longer necessary with...
[jquery.git] / test / data / json.php
1 <?php
2 error_reporting(0);
3 if ( $_REQUEST['header'] ) {
4         header("Content-type: application/json");
5 }
6
7 $json = $_REQUEST['json'];
8 if($json) {
9         echo '[ {"name": "John", "age": 21}, {"name": "Peter", "age": 25 } ]';
10 } else {
11         echo '{ "data": {"lang": "en", "length": 25} }';
12 }
13 ?>