diff options
Diffstat (limited to '')
-rw-r--r-- | sca-cpp/trunk/modules/scheme/value-json.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sca-cpp/trunk/modules/scheme/value-json.cpp b/sca-cpp/trunk/modules/scheme/value-json.cpp index a8c875fcc8..732b73d2e3 100644 --- a/sca-cpp/trunk/modules/scheme/value-json.cpp +++ b/sca-cpp/trunk/modules/scheme/value-json.cpp @@ -32,9 +32,8 @@ namespace tuscany { namespace scheme { -int valueJSON() { - const js::JSContext cx; - failable<list<string> > s = json::writeJSON(readValue(cin), cx); +const int valueJSON() { + const failable<list<string> > s = json::writeValue(content(readValue(cin))); if (!hasContent(s)) { cerr << reason(s) << " : " << rcode(s); return 1; |