diff --git a/mutalyzer/services/json.py b/mutalyzer/services/json.py index b4c95485fb02ad9ed4c9f09ce48776754b473a59..ad4945e2c316a9abd700e388dd17ab37d85bf67e 100644 --- a/mutalyzer/services/json.py +++ b/mutalyzer/services/json.py @@ -12,6 +12,10 @@ from mutalyzer.services import rpc # HTTP/RPC application. +# Note that we originally provided skip_depth=2 to the JsonObject constructor +# to get rid of some annoying wrappers around the json results. However, this +# breaks methods returning a primitive datatype (e.g. just a string). Might +# file a bug about this on spyne. application = Application([rpc.MutalyzerService], tns=mutalyzer.SOAP_NAMESPACE, - in_protocol=HttpRpc(), out_protocol=JsonObject(skip_depth=2), + in_protocol=HttpRpc(), out_protocol=JsonObject(), name='Mutalyzer')