JSON_PRETTY_PRINT supported from PHP version 5.4.0