Commit ea53a377 authored by Francesco Poldi's avatar Francesco Poldi

Fix json output #441

parent a0c74c28
......@@ -65,6 +65,8 @@ def Csv(obj, config):
def Json(obj, config):
_obj_type = obj.__class__.__name__
if _obj_type == "str":
_obj_type = "username"
null, data = struct(obj, config.Custom[_obj_type], _obj_type)
base = addExt(config.Output, _obj_type, "json")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment