summaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-httpd_refresh.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-08-09 18:49:50 +0200
committerChristian Grothoff <christian@grothoff.org>2015-08-09 18:49:50 +0200
commitc489c391a8ad27b7fe55246b4a39f33944822846 (patch)
treedbc5050494da367d65a0fb292b26ecd61ccb3c53 /src/mint/taler-mint-httpd_refresh.c
parent30959d1380ed79d71baee10ec547027b4911c760 (diff)
downloadexchange-c489c391a8ad27b7fe55246b4a39f33944822846.tar.gz
exchange-c489c391a8ad27b7fe55246b4a39f33944822846.tar.bz2
exchange-c489c391a8ad27b7fe55246b4a39f33944822846.zip
use correct TMH command code for JSON objects
Diffstat (limited to 'src/mint/taler-mint-httpd_refresh.c')
-rw-r--r--src/mint/taler-mint-httpd_refresh.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mint/taler-mint-httpd_refresh.c b/src/mint/taler-mint-httpd_refresh.c
index d870f3a33..0a1ad2a02 100644
--- a/src/mint/taler-mint-httpd_refresh.c
+++ b/src/mint/taler-mint-httpd_refresh.c
@@ -694,9 +694,10 @@ TMH_REFRESH_handler_refresh_melt (struct TMH_RequestHandler *rh,
return TMH_RESPONSE_reply_arg_invalid (connection,
"transfer_pubs");
}
- res = TMH_PARSE_navigate_json (connection, coin_evs,
+ res = TMH_PARSE_navigate_json (connection,
+ coin_evs,
TMH_PARSE_JNC_INDEX, (int) 0,
- TMH_PARSE_JNC_RET_DATA,
+ TMH_PARSE_JNC_RET_TYPED_JSON,
JSON_ARRAY, &coin_detail);
if (GNUNET_OK != res)
{
@@ -708,7 +709,7 @@ TMH_REFRESH_handler_refresh_melt (struct TMH_RequestHandler *rh,
res = TMH_PARSE_navigate_json (connection,
transfer_pubs,
TMH_PARSE_JNC_INDEX, (int) 0,
- TMH_PARSE_JNC_RET_DATA,
+ TMH_PARSE_JNC_RET_TYPED_JSON,
JSON_ARRAY, &coin_detail);
if (GNUNET_OK != res)
{