From 2f5b707205b0373f4d715c698117e6e9be0ba9b7 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Sun, 27 May 2018 16:20:09 +0530 Subject: [PATCH] Change JSON to pretty JSON. --- webhook.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webhook.php b/webhook.php index 2e665d5..78151da 100644 --- a/webhook.php +++ b/webhook.php @@ -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() {