diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-09-19 21:06:42 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-09-19 21:06:42 +0000 |
commit | 762cbfb2daba6a8ad62c70ebefd3420850e7ff81 (patch) | |
tree | be26562b967290cd93f9ae1c27d2cd04e4fd7551 /src/json.c | |
parent | 24dea738c62ea9a1060fe7ae86d2a1241e14c5d4 (diff) |
some stuff to dispatch strings instead of JsonNode, but nothing uses it yet.
Diffstat (limited to 'src/json.c')
-rw-r--r-- | src/json.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -42,7 +42,7 @@ gchar *trg_serialize(JsonNode * req) return response; } -JsonObject *trg_deserialize(trg_response * reqrsp, +JsonObject *trg_deserialize(trg_response * response, GError ** error) { JsonParser *parser; @@ -50,13 +50,13 @@ JsonObject *trg_deserialize(trg_response * reqrsp, JsonObject *ret = NULL; parser = json_parser_new(); - json_parser_load_from_data(parser, reqrsp->raw, reqrsp->size, + json_parser_load_from_data(parser, response->raw, response->size, error); if (*error == NULL) { root = json_parser_get_root(parser); #ifdef DEBUG if (g_getenv("TRG_SHOW_INCOMING") != NULL) { - g_debug("<=(INcoming)<=: %s", reqrsp->raw); + g_debug("<=(INcoming)<=: %s", response->raw); } else if (g_getenv("TRG_SHOW_INCOMING_PRETTY") != NULL) { JsonGenerator *pg; gsize len; |