Change JSON to pretty JSON.

This commit is contained in:
Ceda EI 2018-05-27 16:20:09 +05:30
parent dc38a233ef
commit 2f5b707205
1 changed files with 2 additions and 1 deletions

View File

@ -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() {