JSON parsing and map between two lists

telegraf
#1

Hello Community,

I’m trying to ingest JSON data from HTTP listener plugin on telegraf. Unfortunately, my data does not fit with expected json parser format.

For exemple, my data look like this
{
“values”:[
0
],
“dstypes”:[
“derive”
],
“dsnames”:[
“value”
],
“time”:1556910684.821,
“interval”:10.000,
“host”:“host.lab”,
“plugin”:“irq”,
“plugin_instance”:"",
“type”:“irq”,
“type_instance”:“15”
}

Do you have any idea to create a map for dsnames.X: values.X ?
My goal is to have “value”: 0 inserted into influxdb database.

Thanks in advance,
Regards