From a96e544ea8acee8a2fa2f6a5a6e818c4bc1d8bb0 Mon Sep 17 00:00:00 2001 From: Shailesh Patil Date: Fri, 13 Dec 2024 10:51:18 +0000 Subject: [PATCH] fix: mapping the claims attributes to json (#1480) Signed-off-by: mineme0110 --- .../identus/pollux/core/service/CredentialService.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pollux/core/src/main/scala/org/hyperledger/identus/pollux/core/service/CredentialService.scala b/pollux/core/src/main/scala/org/hyperledger/identus/pollux/core/service/CredentialService.scala index 1b00ec39e7..1418a3e87a 100644 --- a/pollux/core/src/main/scala/org/hyperledger/identus/pollux/core/service/CredentialService.scala +++ b/pollux/core/src/main/scala/org/hyperledger/identus/pollux/core/service/CredentialService.scala @@ -215,7 +215,7 @@ object CredentialService { case Some("application/json") => val jsonBytes = java.util.Base64.getUrlDecoder.decode(attr.value.getBytes(StandardCharsets.UTF_8)) new String(jsonBytes, StandardCharsets.UTF_8).fromJson[Json] match - case Right(value) => ZIO.succeed(Json.Obj().add(attr.name, value)) + case Right(value) => ZIO.succeed(jsonObject.add(attr.name, value)) case Left(error) => ZIO.fail(VCClaimsValueParsingError(error)) case Some(media_type) =>