catch json parsing errors when trying to recover detect_derivatives