Backing out commit 795e880bba1f7f949df58748f7fd92e50296a8f4 - errors popping up in...
[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 ?>