# \#json

**URL:** https://community.influxdata.com/tag/json/116.md

[Latest](https://community.influxdata.com/latest.md) · [Categories](https://community.influxdata.com/categories.md) · [Tags](https://community.influxdata.com/tags.md)

---

## [JSON v2 parsing - variable string inside path](https://community.influxdata.com/t/json-v2-parsing-variable-string-inside-path/57590)

<div class="topic-metadata">

**Author:** [@CZvacko](https://community.influxdata.com/u/CZvacko)\
**Replies:** 4\
**Last updated:** [December 16, 2025, 12:52pm UTC](https://community.influxdata.com/t/json-v2-parsing-variable-string-inside-path/57590 "2025-12-16T12:52:57Z")

</div>

Hello, I am trying to parse the json below (which comes from IOT / BSB-LAN). It is truncated to 3 objects (8005, 8009, 8308), but I actually have more objects, based on the device settings (the user can define which dev…

---

## [How to write data to multiple buckets](https://community.influxdata.com/t/how-to-write-data-to-multiple-buckets/57773)

<div class="topic-metadata">

**Author:** [@Nils\_Franke](https://community.influxdata.com/u/Nils_Franke)\
**Replies:** 5\
**Last updated:** [September 23, 2025, 9:34am UTC](https://community.influxdata.com/t/how-to-write-data-to-multiple-buckets/57773 "2025-09-23T09:34:18Z")

</div>

Hi there! I recieve different messages (jsonv2) from one sensor and would like to put different messages into different buckets. This is my config at the moment: \[\[outputs.influxdb\_v2\]\] urls = \["http://127.0.0.1:808…

---

## [Write data despite missing tag value](https://community.influxdata.com/t/write-data-despite-missing-tag-value/56961)

<div class="topic-metadata">

**Author:** [@cortlieb](https://community.influxdata.com/u/cortlieb)\
**Replies:** 5\
**Last updated:** [June 26, 2025, 1:13pm UTC](https://community.influxdata.com/t/write-data-despite-missing-tag-value/56961 "2025-06-26T13:13:51Z")

</div>

Hi, I’m using Telegraf with the MQTT-Input-Plugin to write data to an InfluxDB. I’m parsing the input from the MQTT-source as JSON. Here is a part of my configuration conf-file: \[\[inputs.mqtt\_consumer.json\_v2\]\] \[\[in…

---

## [Nested JSON Array](https://community.influxdata.com/t/nested-json-array/19479)

<div class="topic-metadata">

**Author:** [@goodvirus](https://community.influxdata.com/u/goodvirus)\
**Replies:** 9\
**Last updated:** [June 24, 2025, 11:08pm UTC](https://community.influxdata.com/t/nested-json-array/19479 "2025-06-24T23:08:20Z")

</div>

Hi, I´m trying to ingest some JSON data from an IoT scenario, but can’t get my head around how to ingest some JSON arrays. I got the following data: { "device\_name": "\_5\_115\_3\_TK\_Emmastr\_14", "properties": \[ …

---

## [Telegraf Dynamic Tag Parsing - Batch Style](https://community.influxdata.com/t/telegraf-dynamic-tag-parsing-batch-style/57186)

<div class="topic-metadata">

**Author:** [@Michael\_Rarela](https://community.influxdata.com/u/Michael_Rarela)\
**Replies:** 2\
**Last updated:** [May 10, 2025, 12:39am UTC](https://community.influxdata.com/t/telegraf-dynamic-tag-parsing-batch-style/57186 "2025-05-10T00:39:05Z")

</div>

Via Kafka, I have this incoming JSON payload, that looks very similar to this: { "measurement": "weather", "batches": \[ { "time": 1735854321, "tags": { "tag1": "tagValueA", "tag2": "t…

---

## [Parsing Telegraf output json as input json](https://community.influxdata.com/t/parsing-telegraf-output-json-as-input-json/26274)

<div class="topic-metadata">

**Author:** [@john\_gronska](https://community.influxdata.com/u/john_gronska)\
**Replies:** 7\
**Last updated:** [May 6, 2025, 9:27pm UTC](https://community.influxdata.com/t/parsing-telegraf-output-json-as-input-json/26274 "2025-05-06T21:27:00Z")

</div>

I’m trying to “pipe” JSON between instances of Telegraf. Data in Telegraf’s JSON output standard format: { "fields": { "field\_1": 30, "field\_2": 4, "field\_N": 59, "n\_images": 660 …

---

## [Prevent json\_v2 from splitting JSON field into separate fields](https://community.influxdata.com/t/prevent-json-v2-from-splitting-json-field-into-separate-fields/56538)

<div class="topic-metadata">

**Author:** [@NNNN](https://community.influxdata.com/u/NNNN)\
**Replies:** 2\
**Last updated:** [March 18, 2025, 9:32pm UTC](https://community.influxdata.com/t/prevent-json-v2-from-splitting-json-field-into-separate-fields/56538 "2025-03-18T21:32:42Z")

</div>

I have the following Influx Telegraf / InfluxDB Cloud 2.0 issue: I’m sending an event MQTT message like this, containing a new event as well as the list of all currently active issues: { "timestamp": "2025-03-07T14:0…

---

## [Parsing JSON data into multiple entries](https://community.influxdata.com/t/parsing-json-data-into-multiple-entries/56759)

<div class="topic-metadata">

**Author:** [@tberton](https://community.influxdata.com/u/tberton)\
**Replies:** 1\
**Last updated:** [March 18, 2025, 10:47am UTC](https://community.influxdata.com/t/parsing-json-data-into-multiple-entries/56759 "2025-03-18T10:47:59Z")

</div>

Hi, I am trying to create a Telegraf config to parse the following JSON data into multiple entries: { "IMEI": "5679789121", "Model": "X64B1", "temperature": 18.8, "humidity": 46.4, "interrupt": 0, …

---

## [Json\_v2 array parsing](https://community.influxdata.com/t/json-v2-array-parsing/28529)

<div class="topic-metadata">

**Author:** [@shilga](https://community.influxdata.com/u/shilga)\
**Replies:** 6\
**Last updated:** [February 25, 2025, 1:05pm UTC](https://community.influxdata.com/t/json-v2-array-parsing/28529 "2025-02-25T13:05:39Z")

</div>

Hi, I’m trying to parse an array with several measurements but I’m unable to solve it. I tried to find a solution but it seems that json\_v2 is unable to do what I want. I’m here to ask if I oversaw a feature or if I ha…

---

## [Telegraf MQTT JSON Parsing](https://community.influxdata.com/t/telegraf-mqtt-json-parsing/56403)

<div class="topic-metadata">

**Author:** [@JoJo](https://community.influxdata.com/u/JoJo)\
**Replies:** 0\
**Last updated:** [February 16, 2025, 3:12pm UTC](https://community.influxdata.com/t/telegraf-mqtt-json-parsing/56403 "2025-02-16T15:12:18Z")

</div>

Hello community, after a long time trying to find a solution, I’m asking for help here. I would like to import all the data sent by a MQTT string into an InfluxDB database. Then visualize the data with Grafana. This i…

---

## [Parsing json array of strings with json\_v2.object produces an error](https://community.influxdata.com/t/parsing-json-array-of-strings-with-json-v2-object-produces-an-error/56389)

<div class="topic-metadata">

**Author:** [@louisn](https://community.influxdata.com/u/louisn)\
**Replies:** 0\
**Last updated:** [February 13, 2025, 3:14pm UTC](https://community.influxdata.com/t/parsing-json-array-of-strings-with-json-v2-object-produces-an-error/56389 "2025-02-13T15:14:11Z")

</div>

For a very simple input as shown (apologies for the message string internal formatting but it is what it is and should be seen as a string from the parsing perspective.) { "uptimeSeconds": 441402.94, "status": 2,…

---

## [Elements of json array as fields](https://community.influxdata.com/t/elements-of-json-array-as-fields/55757)

<div class="topic-metadata">

**Author:** [@Maxime](https://community.influxdata.com/u/Maxime)\
**Replies:** 0\
**Last updated:** [January 16, 2025, 10:17pm UTC](https://community.influxdata.com/t/elements-of-json-array-as-fields/55757 "2025-01-16T22:17:57Z")

</div>

Hi, Consider the following json (from an MQTT message): { "device\_id": "sp-e4a465", "mac": "AA:BB:CC:11:22:33", "timestamp": 1736666999, "metrics": \[ {"name": "co2", "value": 450}, {"name": "temperature…

---

## [\[inputs.mqtt\_consumer\] Error in plugin: cannot parse with empty selection node](https://community.influxdata.com/t/inputs-mqtt-consumer-error-in-plugin-cannot-parse-with-empty-selection-node/39833)

<div class="topic-metadata">

**Author:** [@Branko](https://community.influxdata.com/u/Branko)\
**Replies:** 0\
**Last updated:** [December 14, 2024, 6:51pm UTC](https://community.influxdata.com/t/inputs-mqtt-consumer-error-in-plugin-cannot-parse-with-empty-selection-node/39833 "2024-12-14T18:51:49Z")

</div>

Hi there, I’m unable to parse data from a Tasmota device via MQTT. JSON contains two power meter sensors. I like to get the data for PwrZ1 and PwrZ2. Any hints on this? I’m lost here. Thank you! :slight\_smile: I get t…

---

## [Telegraf parse Mqtt payload](https://community.influxdata.com/t/telegraf-parse-mqtt-payload/39359)

<div class="topic-metadata">

**Author:** [@Rosario\_Iameo](https://community.influxdata.com/u/Rosario_Iameo)\
**Replies:** 1\
**Last updated:** [December 11, 2024, 1:13pm UTC](https://community.influxdata.com/t/telegraf-parse-mqtt-payload/39359 "2024-12-11T13:13:37Z")

</div>

Hi all, im tring to pars the payload of topics from mqtt brokerwith telegraf but i dont undestand how it work with json\_v2 parser. the json object is : { “metrics”: \[ { “alias”: 2, “datatype”: 9, “name”: “01TT101…

---

## [Telegraf - how get JSON data (JSON with big and difficult structure) from api url correctrly](https://community.influxdata.com/t/telegraf-how-get-json-data-json-with-big-and-difficult-structure-from-api-url-correctrly/39061)

<div class="topic-metadata">

**Author:** [@vladimir.n.kostyanik](https://community.influxdata.com/u/vladimir.n.kostyanik)\
**Replies:** 3\
**Last updated:** [November 2, 2024, 8:48am UTC](https://community.influxdata.com/t/telegraf-how-get-json-data-json-with-big-and-difficult-structure-from-api-url-correctrly/39061 "2024-11-02T08:48:14Z")

</div>

Hello! I want to get some metrics from device with telegraf. Device has API (http://10.1.0.1/status) and i can to get JSON data from it. APi returns JSON with difficult structure (several nested arrays and some of these…

---

## [Correct way to configure json\_v2 with mqtt\_consumer](https://community.influxdata.com/t/correct-way-to-configure-json-v2-with-mqtt-consumer/38671)

<div class="topic-metadata">

**Author:** [@monotux](https://community.influxdata.com/u/monotux)\
**Replies:** 3\
**Last updated:** [October 8, 2024, 12:32pm UTC](https://community.influxdata.com/t/correct-way-to-configure-json-v2-with-mqtt-consumer/38671 "2024-10-08T12:32:06Z")

</div>

I’ve spent some time trying to understand how to use json\_v2 with my mqtt\_consumer flow, without any luck. :frowning: My json payload looks like this: { "model": "Bresser-3CH", "id": 130, "channel": 1, …

---

## [Configure Telegraf for nested array of timestamps and data](https://community.influxdata.com/t/configure-telegraf-for-nested-array-of-timestamps-and-data/35021)

<div class="topic-metadata">

**Author:** [@natwez22](https://community.influxdata.com/u/natwez22)\
**Replies:** 1\
**Last updated:** [July 22, 2024, 9:38pm UTC](https://community.influxdata.com/t/configure-telegraf-for-nested-array-of-timestamps-and-data/35021 "2024-07-22T21:38:13Z")

</div>

I have a json array coming in over mqtt that looks like the following { "Sensor1": { "Time": \[ 1721423157027428600, 1721423157031428600, 1721423157035428600, 1721423157039428600, 1721…

---

## [Process an array of json data](https://community.influxdata.com/t/process-an-array-of-json-data/34964)

<div class="topic-metadata">

**Author:** [@Rishav\_Kumar\_Jha](https://community.influxdata.com/u/Rishav_Kumar_Jha)\
**Replies:** 1\
**Last updated:** [July 15, 2024, 3:13pm UTC](https://community.influxdata.com/t/process-an-array-of-json-data/34964 "2024-07-15T15:13:44Z")

</div>

I have setup the “mqtt\_consume” input plugin for my telegraf agent. The configuration is shown below: \[\[inputs.mqtt\_consumer\]\] alias = "input\_mqtt\_consumer\_tsesre\_node" servers = \[ "mqtt://constellat…

---

## [Reading Tasmota Mqtt Content](https://community.influxdata.com/t/reading-tasmota-mqtt-content/34671)

<div class="topic-metadata">

**Author:** [@Paddy65305](https://community.influxdata.com/u/Paddy65305)\
**Replies:** 13\
**Last updated:** [June 26, 2024, 5:55pm UTC](https://community.influxdata.com/t/reading-tasmota-mqtt-content/34671 "2024-06-26T17:55:24Z")

</div>

I have a ESP32 with Tasmota how is put to the digital electricity meter to get the information. this send to Topics: one on Tasmota/STATUS10 every 15min: {“StatusSNS”:{“Time”:“2024-06-22T10:00:01”,“MT175”:{“E\_in”:1264…

---

## [The result of modifying the key name of the json format data will be doubled](https://community.influxdata.com/t/the-result-of-modifying-the-key-name-of-the-json-format-data-will-be-doubled/34714)

<div class="topic-metadata">

**Author:** [@Latezly](https://community.influxdata.com/u/Latezly)\
**Replies:** 1\
**Last updated:** [June 25, 2024, 7:43pm UTC](https://community.influxdata.com/t/the-result-of-modifying-the-key-name-of-the-json-format-data-will-be-doubled/34714 "2024-06-25T19:43:42Z")

</div>

JSON data { "Time": "2024-06-25T06:20:03", "ENERGY": { "TotalStartTime": "2024-05-15T17:10:58", "Total": \[ 206.965, 291.411, 473.815 \], "Yester…

---

## [Telegraf MQTT to Influxdb - Add custom field for current date](https://community.influxdata.com/t/telegraf-mqtt-to-influxdb-add-custom-field-for-current-date/34437)

<div class="topic-metadata">

**Author:** [@dmorel](https://community.influxdata.com/u/dmorel)\
**Replies:** 5\
**Last updated:** [June 5, 2024, 12:43pm UTC](https://community.influxdata.com/t/telegraf-mqtt-to-influxdb-add-custom-field-for-current-date/34437 "2024-06-05T12:43:53Z")

</div>

Hello, I have set my telegraf config for write my Json topic was write in collection in Influxdb. It works well. But i want add the current date like a field for know the write date. How can i make this in my \[\[input…

---

## [Telegraf plugin inputs.mqtt\_consumer: line 2: configuration specified the fields \["json\_v2"\], but they weren't used](https://community.influxdata.com/t/telegraf-plugin-inputs-mqtt-consumer-line-2-configuration-specified-the-fields-json-v2-but-they-werent-used/34066)

<div class="topic-metadata">

**Author:** [@loggik](https://community.influxdata.com/u/loggik)\
**Replies:** 4\
**Last updated:** [April 29, 2024, 6:25pm UTC](https://community.influxdata.com/t/telegraf-plugin-inputs-mqtt-consumer-line-2-configuration-specified-the-fields-json-v2-but-they-werent-used/34066 "2024-04-29T18:25:14Z")

</div>

Hi i try to setup telegraf to write mqtt messages to influxdb. I got telegraf up and running but got error messages when trying to consume mqtt messages because the payload is json. I found a blog post on how to parse …

---

## [Importing multiple Tasmota Sensors per device data to Influxdbv1](https://community.influxdata.com/t/importing-multiple-tasmota-sensors-per-device-data-to-influxdbv1/33642)

<div class="topic-metadata">

**Author:** [@tasmotizer](https://community.influxdata.com/u/tasmotizer)\
**Replies:** 9\
**Last updated:** [March 21, 2024, 8:43pm UTC](https://community.influxdata.com/t/importing-multiple-tasmota-sensors-per-device-data-to-influxdbv1/33642 "2024-03-21T20:43:47Z")

</div>

Hello, i’m using actual tasmota device with 3 sensors + mqtt → mosquitto mqtt server → telegraf + influxdbv1 Everything if working great except the one host who has 3 sensors of same type (DS18B20) and only the last on…

---

## [Dynamic field names in MQTT payload with json\_v2](https://community.influxdata.com/t/dynamic-field-names-in-mqtt-payload-with-json-v2/33626)

<div class="topic-metadata">

**Author:** [@ga29](https://community.influxdata.com/u/ga29)\
**Replies:** 2\
**Last updated:** [March 21, 2024, 8:00pm UTC](https://community.influxdata.com/t/dynamic-field-names-in-mqtt-payload-with-json-v2/33626 "2024-03-21T20:00:33Z")

</div>

Hi, I am new to Influx and Telegraf. I am trying to setup Telegraf to parse JSON payload from an MQTT input. The problem is my payload (not under my control) is having dynamic field values. It is a flat structure somethi…

---

## [Routing nested json objects to different measurements](https://community.influxdata.com/t/routing-nested-json-objects-to-different-measurements/33556)

<div class="topic-metadata">

**Author:** [@Dimitris\_Mamalis](https://community.influxdata.com/u/Dimitris_Mamalis)\
**Replies:** 1\
**Last updated:** [March 14, 2024, 1:47pm UTC](https://community.influxdata.com/t/routing-nested-json-objects-to-different-measurements/33556 "2024-03-14T13:47:35Z")

</div>

Hi there, i am using \[\[inputs.mqtt\_consumer\]\] and json\_v2 to parse the payload of incoming messages. I would like to split the incoming message to two different measurements. I tried having multiples of the json\_v2 pa…

---

## [How to configure Telegraf to parse MQTT with JSON message](https://community.influxdata.com/t/how-to-configure-telegraf-to-parse-mqtt-with-json-message/33343)

<div class="topic-metadata">

**Author:** [@ChrisChros](https://community.influxdata.com/u/ChrisChros)\
**Replies:** 3\
**Last updated:** [March 1, 2024, 8:03pm UTC](https://community.influxdata.com/t/how-to-configure-telegraf-to-parse-mqtt-with-json-message/33343 "2024-03-01T20:03:24Z")

</div>

Hi, I am at the beginning of the learning curve how to configure Telegraf for my needs. Till now I have successfully configured to receive MQTT datas from my wallbox for normal values. But the box also publish some data…

---

## [Error message with MQTT and JSON](https://community.influxdata.com/t/error-message-with-mqtt-and-json/33351)

<div class="topic-metadata">

**Author:** [@spider53](https://community.influxdata.com/u/spider53)\
**Replies:** 3\
**Last updated:** [February 27, 2024, 4:47pm UTC](https://community.influxdata.com/t/error-message-with-mqtt-and-json/33351 "2024-02-27T16:47:13Z")

</div>

Hello, I have a quit simple config file to write two values into InfluxDB. It works ok since 2 month and writes the two values “Zaehler\_Stand” and “Zaeler\_Verbrauch” into the database. But nevertheless I have continuous…

---

## [Help needed: Using telegraf to parse mqtt with JSON payload](https://community.influxdata.com/t/help-needed-using-telegraf-to-parse-mqtt-with-json-payload/29344)

<div class="topic-metadata">

**Author:** [@universal-dilettant](https://community.influxdata.com/u/universal-dilettant)\
**Replies:** 10\
**Last updated:** [February 26, 2024, 7:09pm UTC](https://community.influxdata.com/t/help-needed-using-telegraf-to-parse-mqtt-with-json-payload/29344 "2024-02-26T19:09:24Z")

</div>

Hi, I’m new to telegraf. That being said, I’m trying to parse some mqtt topics with telegraf, with the (later) goal to import them into influxDB. The mqtt topics are like this: mqtt\_consumer,host=xxxx,topic=mtr/hzg/te…

---

## [Help needed processing JSON](https://community.influxdata.com/t/help-needed-processing-json/33298)

<div class="topic-metadata">

**Author:** [@mabnz](https://community.influxdata.com/u/mabnz)\
**Replies:** 2\
**Last updated:** [February 23, 2024, 4:25am UTC](https://community.influxdata.com/t/help-needed-processing-json/33298 "2024-02-23T04:25:08Z")

</div>

I’m trying to parse some JSON via mqtt into telegraf (then into influxdb). The JSON looks like: { "Time": "2024-02-22T17:50:25", "INA3221": { "Id": "0x40", "Voltage": \[ 4.048, …

---

## [Duplicate Data Point in InfluxDB](https://community.influxdata.com/t/duplicate-data-point-in-influxdb/33106)

<div class="topic-metadata">

**Author:** [@Nilesh786](https://community.influxdata.com/u/Nilesh786)\
**Replies:** 5\
**Last updated:** [February 7, 2024, 8:41am UTC](https://community.influxdata.com/t/duplicate-data-point-in-influxdb/33106 "2024-02-07T08:41:24Z")

</div>

Hello All, My usecase to read from a json output file wriiten by K6 (an opensource load testing tool) and write every new json to influxdb via telegraf. I have deployed two pods in k8s cluster for this purpose, one is a…

[Next page](https://community.influxdata.com/tag/json/116.md?match_all_tags=true&page=1&tags%5B%5D=json)
