removed whitespace in JSON output
This commit is contained in:
parent
bfcc4bdc39
commit
e016cf71e9
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue