Anyway knows about json encoding with totally arrange like this https://graph.facebook.com/4 like facebook graph?
coz when i write json simply php echo json_encode this will come out {"id":"4","name":"Mark Zuckerberg","first_name":"Mark","last_name":"Zuckerberg","link":"https://www.facebook.com/zuck","username":"zuck","gender":"male","locale":"en_US"}
just a straight line… 😀 anyone knows about it? 😀 please share
For PHP >=5.4.0, you can use JSON_PRETTY_PRINT option when using json_encode
For PHP < 5.4.0, you can use code from a user contributed note in this page of PHP manual http://www.php.net/manual/en/function.json-encode.php#80339