diff --git a/modules/charon-core/src/main/java/org/wso2/charon3/core/encoder/JSONDecoder.java b/modules/charon-core/src/main/java/org/wso2/charon3/core/encoder/JSONDecoder.java index 9d2fb527..0b790254 100644 --- a/modules/charon-core/src/main/java/org/wso2/charon3/core/encoder/JSONDecoder.java +++ b/modules/charon-core/src/main/java/org/wso2/charon3/core/encoder/JSONDecoder.java @@ -775,7 +775,7 @@ public ArrayList decodeRequest(String scimResourceString) throws patchOperation.setValues(operation.opt(SCIMConstants.OperationalConstants.VALUE)); operationList.add(patchOperation); } - } catch (JSONException e) { + } catch (JSONException | ClassCastException e) { if (logger.isDebugEnabled()) { logger.debug("json error in decoding the request", e); }