Commit_error_with_JSON