diff --git a/registration-processor/core-processor/registration-processor-uin-generator-stage/src/main/java/io/mosip/registration/processor/stages/uingenerator/stage/UinGeneratorStage.java b/registration-processor/core-processor/registration-processor-uin-generator-stage/src/main/java/io/mosip/registration/processor/stages/uingenerator/stage/UinGeneratorStage.java index 7e0000118a3..a80704e0170 100644 --- a/registration-processor/core-processor/registration-processor-uin-generator-stage/src/main/java/io/mosip/registration/processor/stages/uingenerator/stage/UinGeneratorStage.java +++ b/registration-processor/core-processor/registration-processor-uin-generator-stage/src/main/java/io/mosip/registration/processor/stages/uingenerator/stage/UinGeneratorStage.java @@ -475,7 +475,7 @@ else if (json instanceof JSONArray) { JSONArray jsonArray = new JSONArray(value); for (int i = 0; i < jsonArray.length(); i++) { Object obj = jsonArray.get(i); - HashMap hashMap = new ObjectMapper().readValue(obj.toString().trim(), HashMap.class); + HashMap hashMap = new ObjectMapper().readValue(obj.toString(), HashMap.class); jsonList.add(hashMap); } demographicIdentity.putIfAbsent(e.getKey(), jsonList);