How To Pretty Print JSON in PHP

Author: , June 11th, 2020

If you ever want to view your JSON as a human ;-} $pretty_json = json_encode($data, JSON_PRETTY_PRINT); https://www.php.net/manual/en/function.json-encode.php