From a07d4945c1a301aeaf4b67411065b9adcfac1065 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Mon, 27 Feb 2012 03:26:51 +0000 Subject: Fix mapping between repeating XML elements, S-expression lists, and JSON array cells. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1294006 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/modules/json/json.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sca-cpp/trunk/modules/json/json.hpp') diff --git a/sca-cpp/trunk/modules/json/json.hpp b/sca-cpp/trunk/modules/json/json.hpp index e222ef0486..39c56b6863 100644 --- a/sca-cpp/trunk/modules/json/json.hpp +++ b/sca-cpp/trunk/modules/json/json.hpp @@ -122,7 +122,7 @@ template const failable writeJSON(const lambda > writeJSON(const list& l, const js::JSContext& cx) { - const failable > ls = writeJSON>(rcons, list(), l, cx); + const failable > ls = writeJSON>(rcons, list(), valuesToElements(elementsToValues(l)), cx); if (!hasContent(ls)) return ls; return reverse(list(content(ls))); -- cgit v1.2.3