We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentdbc9dac commitd5ae14fCopy full SHA for d5ae14f
test/data/mock.php
@@ -95,9 +95,9 @@ protected function json( $req ) {
95
}
96
97
if (isset($req->query['array'] ) ) {
98
-echo'[{"name":"John","age":21},{"name":"Peter","age":25}]';
+echo'[{"name":"John","age":21},{"name":"Peter","age": 25 }]';
99
}else {
100
-echo'{"data":{"lang":"en","length":25}}';
+echo'{"data":{"lang":"en","length":25}}';
101
102
103
@@ -112,8 +112,8 @@ protected function jsonp( $req ) {
112
$callback =$_POST['callback'];
113
114
$json =isset($req->query['array'] ) ?
115
-'[{"name":"John","age":21},{"name":"Peter","age":25}]' :
116
-'{"data":{"lang":"en","length":25}}';
+'[ {"name":"John","age": 21 }, {"name":"Peter","age": 25 }]' :
+'{"data": {"lang":"en","length": 25 }}';
117
echocleanCallback($callback ) .'(' .$json .')';
118
119