Reorganzing the jQuery source (first phase).
[jquery.git] / test / data / json.php
diff --git a/test/data/json.php b/test/data/json.php
new file mode 100644 (file)
index 0000000..08e3f9e
--- /dev/null
@@ -0,0 +1,9 @@
+<?php\r
+error_reporting(0);\r
+$json = $_REQUEST['json'];\r
+if($json) {\r
+       echo '[ {"name": "John", "age": 21}, {"name": "Peter", "age": 25 } ]';\r
+} else {\r
+       echo '{ "data": {"lang": "en", "length": 25} }';\r
+}\r
+?>
\ No newline at end of file