git.asbjorn.biz
/
jquery.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Modified ready to event to pass jQuery object, allowing users to avoid the ugly custo...
[jquery.git]
/
build
/
test
/
data
/
json.php
1
<?php
\r
2
error_reporting(0);
\r
3
$json = $_REQUEST['json'];
\r
4
if($json) {
\r
5
echo '[ {"name": "John", "age": 21}, {"name": "Peter", "age": 25 } ]';
\r
6
} else {
\r
7
echo '{ "data": {"lang": "en", "length": 25} }';
\r
8
}
\r
9
?>