CELIX-237: fix json serialization

Project: http://git-wip-us.apache.org/repos/asf/celix/repo
Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/d2c53ed9
Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/d2c53ed9
Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/d2c53ed9

Branch: refs/heads/feature/CELIX-269_depman
Commit: d2c53ed93373cd7010ec960ac4de6f66f5540131
Parents: ade96be
Author: Bjoern Petri <bpe...@apache.org>
Authored: Wed Oct 21 21:53:24 2015 +0200
Committer: Bjoern Petri <bpe...@apache.org>
Committed: Wed Oct 21 21:53:24 2015 +0200

----------------------------------------------------------------------
 .../examples/calculator_proxy/private/src/calculator_proxy_impl.c  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/d2c53ed9/remote_services/examples/calculator_proxy/private/src/calculator_proxy_impl.c
----------------------------------------------------------------------
diff --git 
a/remote_services/examples/calculator_proxy/private/src/calculator_proxy_impl.c 
b/remote_services/examples/calculator_proxy/private/src/calculator_proxy_impl.c
index af2cfc3..fc21412 100644
--- 
a/remote_services/examples/calculator_proxy/private/src/calculator_proxy_impl.c
+++ 
b/remote_services/examples/calculator_proxy/private/src/calculator_proxy_impl.c
@@ -68,7 +68,7 @@ celix_status_t calculatorProxy_add(calculator_pt calculator, 
double a, double b,
 
        if (calculator->endpoint != NULL) {
                json_t *root;
-               root = json_pack("{s:s, s:[fmt]}", "m", "add(DD)D", "a", a, b);
+               root = json_pack("{s:s, s:[ff]}", "m", "add(DD)D", "a", a, b);
 
                char *data = json_dumps(root, 0);
                char *reply = NULL;

Reply via email to