removed whitespace in JSON output

This commit is contained in:
osiu97 2019-01-10 11:46:01 +00:00
parent bfcc4bdc39
commit e016cf71e9
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ def listofdicts_to_zabbix_json(dlist):
newdict = {k: v} newdict = {k: v}
newdlist.append(newdict) newdlist.append(newdict)
newdlist = {"data": newdlist} newdlist = {"data": newdlist}
zabbixjson = json.dumps(newdlist) zabbixjson = json.dumps(newdlist,separators=(',', ':'))
return zabbixjson return zabbixjson