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