Sha256: 04d959ba3e483206d6b6e977b131706de348ba6b5e334170ca790c3887f154c8
Contents?: true
Size: 383 Bytes
Versions: 12
Compression:
Stored size: 383 Bytes
Contents
<?php error_reporting(0); $callback = $_REQUEST['callback']; if ( ! $callback ) { $callback = explode("?",end(explode("/",$_SERVER['REQUEST_URI']))); $callback = $callback[0]; } $json = $_REQUEST['json']; if($json) { echo $callback . '([ {"name": "John", "age": 21}, {"name": "Peter", "age": 25 } ])'; } else { echo $callback . '({ "data": {"lang": "en", "length": 25} })'; } ?>
Version data entries
12 entries across 12 versions & 2 rubygems