removed whitespace in JSON output
This commit is contained in:
+1
-1
@@ -62,7 +62,7 @@ def listofdicts_to_zabbix_json(dlist):
|
||||
newdict = {k: v}
|
||||
newdlist.append(newdict)
|
||||
newdlist = {"data": newdlist}
|
||||
zabbixjson = json.dumps(newdlist)
|
||||
zabbixjson = json.dumps(newdlist,separators=(',', ':'))
|
||||
return zabbixjson
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user