Hi!
When using zabbix_sender.exe with the -o option I expected that any JSON-format would be valid.
Why do I have to use escape (\) characters?
Valid for zabbix_sender
{\"data\":[{\"{#VMNAME}\":\"megastar\"}]}
Not valid for zabbix_sender
{"data":[{"{#VMNAME}":"megastar"}]}
I have no problem adding those backslashes but since the discovery rule whines about "...only accepts valid JSON" when I in fact send valid JSON I believe something might be wrong.
When using zabbix_sender.exe with the -o option I expected that any JSON-format would be valid.
Why do I have to use escape (\) characters?
Valid for zabbix_sender
{\"data\":[{\"{#VMNAME}\":\"megastar\"}]}
Not valid for zabbix_sender
{"data":[{"{#VMNAME}":"megastar"}]}
I have no problem adding those backslashes but since the discovery rule whines about "...only accepts valid JSON" when I in fact send valid JSON I believe something might be wrong.
Comment