aboutsummaryrefslogtreecommitdiffstats
path: root/test/data/json.php
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-09-08 12:42:32 +0000
committerJohn Resig <jeresig@gmail.com>2007-09-08 12:42:32 +0000
commitb4e23b5af0820a66c2e275051f613f3df9a4444d (patch)
tree8045667211e4aa393ee1b6e006dd0c953e77c963 /test/data/json.php
parent13b66c8ba9618242df2c1cc352a2b1d879c36188 (diff)
downloadjquery-b4e23b5af0820a66c2e275051f613f3df9a4444d.tar.gz
jquery-b4e23b5af0820a66c2e275051f613f3df9a4444d.zip
Reorganzing the jQuery source (first phase).
Diffstat (limited to 'test/data/json.php')
-rw-r--r--test/data/json.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/data/json.php b/test/data/json.php
new file mode 100644
index 000000000..08e3f9e32
--- /dev/null
+++ b/test/data/json.php
@@ -0,0 +1,9 @@
+<?php
+error_reporting(0);
+$json = $_REQUEST['json'];
+if($json) {
+ echo '[ {"name": "John", "age": 21}, {"name": "Peter", "age": 25 } ]';
+} else {
+ echo '{ "data": {"lang": "en", "length": 25} }';
+}
+?> \ No newline at end of file