json beautifier in php code example Example: php json_encode beautify json_encode($data, JSON_PRETTY_PRINT)