fixed cschedule syntax errors and removed JSON_PRETTY_PRINT as it is not implemented in older PHP versions