git.asbjorn.biz
/
jquery.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Deferred cannot be cancelled by returning false in a callback. Exception in the callb...
[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
?>