Fixing endlines.
[jquery.git] / test / data / json.php
1 <?php
2 error_reporting(0);
3 $json = $_REQUEST['json'];
4 if($json) {
5         echo '[ {"name": "John", "age": 21}, {"name": "Peter", "age": 25 } ]';
6 } else {
7         echo '{ "data": {"lang": "en", "length": 25} }';
8 }
9 ?>