Telegraf json input - parsing data

Hi,
i need to insert the following data into InfluxDB via Telegraf. I don’t know how how configure telegraf.conf right. Can someone help me?

{

“data”: {
“1651719600”: [0, 0],
“1651723200”: [1.89, 1.89],
“1651726800”: [6.9, 8.79],
“1651730400”: [13.23, 22.02],
“1651734000”: [7.655, 29.675],
“1651737600”: [9.75, 39.425],
“1651741200”: [16.971, 56.396],
“1651744800”: [20.77, 77.166],
“1651748400”: [20.083, 97.249],

}
I only need the first value of the array and the corresponding timestamp.
Thank you!

Hi!

It looks like you want to go through a dictionary in your JSON and use the keys as the timestamp and then store the first array value?

For something like this, I would choose your favorite language and use the client libraries instead. It is a bit easier to parse very specific JSON like you have here versus using the JSON parse in Telegraf.

Let me know