Pretty print json

Only in debug mode and if available (PHP 5.4.0 or later)
pretty print xml too

Only in debug mode