JSON_PRETTY_PRINT not available in PHP < 5.4.0