JSON_PRETTY_PRINT only for PHP 5.4+, fixed PHP notice