Re-wrote the JsonHandleErrorAttribute.