From 9cee4b31dadd2382b9015a235b7408cc3044da1d Mon Sep 17 00:00:00 2001 From: Ian Costanzo Date: Wed, 22 Apr 2020 09:11:00 -0700 Subject: [PATCH] Return json rather than json-encoded string Signed-off-by: Ian Costanzo --- aries_cloudagent/holder/routes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aries_cloudagent/holder/routes.py b/aries_cloudagent/holder/routes.py index fc46e9ec6c..2df0fec8d9 100644 --- a/aries_cloudagent/holder/routes.py +++ b/aries_cloudagent/holder/routes.py @@ -89,7 +89,8 @@ async def credentials_get(request: web.BaseRequest): except WalletNotFoundError: raise web.HTTPNotFound() - return web.json_response(credential) + credential_json = json.loads(credential) + return web.json_response(credential_json) @docs(tags=["credentials"], summary="Remove a credential from the wallet by id")