Change JSON to pretty JSON.
This commit is contained in:
parent
dc38a233ef
commit
2f5b707205
|
@ -234,7 +234,8 @@ function kys() {
|
|||
// Sends back JSON
|
||||
function json() {
|
||||
global $var;
|
||||
send_text($var);
|
||||
$pretty_json = json_encode(json_decode($var), JSON_PRETTY_PRINT);
|
||||
send_text($pretty_json);
|
||||
}
|
||||
// Start Message
|
||||
function start() {
|
||||
|
|
Loading…
Reference in New Issue