PHP 5.3 support for JSON_PRETTY_PRINT