Catch only JSON parsing error in RuboCop class