json_encode pretty php code example Example: php json_encode beautify json_encode($data, JSON_PRETTY_PRINT)