diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-28 20:53:21 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-28 20:53:21 +0100 |
commit | 9c3c6295a85a03fdad9a77799e85289ce65a109b (patch) | |
tree | 4325f5a0d8f26f32effd9b2bf4c900a83a038d8a /src/util/json.c | |
parent | c4b63c13029b9d731b826ffab4a9d59005b0c6a5 (diff) |
even cleaner separation of PostGres-specific logic, and nicer libtalerutil headers
Diffstat (limited to 'src/util/json.c')
-rw-r--r-- | src/util/json.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/json.c b/src/util/json.c index 252def394..f686d84a1 100644 --- a/src/util/json.c +++ b/src/util/json.c @@ -13,13 +13,11 @@ You should have received a copy of the GNU General Public License along with TALER; see the file COPYING. If not, If not, see <http://www.gnu.org/licenses/> */ - /** * @file util/json.c * @brief helper functions for JSON processing using libjansson * @author Sree Harsha Totakura <sreeharsha@totakura.in> */ - #include "platform.h" #include <gnunet/gnunet_util_lib.h> #include "taler_util.h" @@ -49,6 +47,7 @@ if (cond) { WARN_JSON(error); goto EXITIF_exit; } \ } while (0) + /** * Convert a TALER amount to a JSON * object. @@ -60,6 +59,7 @@ json_t * TALER_JSON_from_amount (struct TALER_Amount amount) { json_t *j; + j = json_pack ("{s: s, s:I, s:I}", "currency", amount.currency, "value", (json_int_t) amount.value, |