repo.or.cz
/
chromium-blink-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git]
/
third_party
/
WebKit
/
LayoutTests
/
jquery
/
resources
/
test
/
data
/
json.php
blob
d6e0f2fc7f56944f28f045b9a3e194ee701c44ac
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
?
>