diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-07-31 21:40:48 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-07-31 21:40:48 +0200 |
commit | fde9dc80f6e6a5fe4c5856b2ed78e6c024528c43 (patch) | |
tree | 35d5e52652b38f75a5279fe855cc1d345fe3c1c5 /src/auditor/taler-auditor-httpd.c | |
parent | 1d54400a025ff62ad15b77ab117ea5188884b1a1 (diff) |
-more json_pack cleaning
Diffstat (limited to 'src/auditor/taler-auditor-httpd.c')
-rw-r--r-- | src/auditor/taler-auditor-httpd.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/auditor/taler-auditor-httpd.c b/src/auditor/taler-auditor-httpd.c index d68ec7593..1824167fe 100644 --- a/src/auditor/taler-auditor-httpd.c +++ b/src/auditor/taler-auditor-httpd.c @@ -1,6 +1,6 @@ /* This file is part of TALER - Copyright (C) 2014-2020 Taler Systems SA + Copyright (C) 2014-2021 Taler Systems SA TALER is free software; you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software @@ -323,11 +323,13 @@ handle_version (struct TAH_RequestHandler *rh, (void) connection_cls; if (NULL == ver) { - ver = json_pack ("{s:s, s:s, s:o}", - "version", AUDITOR_PROTOCOL_VERSION, - "currency", TAH_currency, - "auditor_public_key", GNUNET_JSON_from_data_auto ( - &auditor_pub)); + ver = GNUNET_JSON_PACK ( + GNUNET_JSON_pack_string ("version", + AUDITOR_PROTOCOL_VERSION), + GNUNET_JSON_pack_string ("currency", + TAH_currency), + GNUNET_JSON_pack_data_auto ("auditor_public_key", + &auditor_pub)); } if (NULL == ver) { |