removed whitespace in JSON output

This commit is contained in:
osiu97
2019-01-10 11:46:01 +00:00
parent bfcc4bdc39
commit e016cf71e9
+1 -1
View File
@@ -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