test the existence of JSON_PRETTY_PRINT before using it