git.asbjorn.biz
/
jquery.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Backing out fix for #5803 from 3b50eaca2cd0b1439235e39c4e98a6438e8f55b2.
[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
?>