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) =>