# Telegraf inputs.http plugin: JSON array (with json\_query)

**URL:** <https://community.influxdata.com/t/telegraf-inputs-http-plugin-json-array-with-json-query/7761>\
**Category:** Telegraf\
**Tags:** telegraf\
**Created:** [December 6, 2018, 6:36pm UTC](https://community.influxdata.com/t/telegraf-inputs-http-plugin-json-array-with-json-query/7761 "2018-12-06T18:36:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevink00](https://avatars.discourse-cdn.com/v4/letter/k/6a8cbe/32.png) [@kevink00](https://community.influxdata.com/u/kevink00)\
**Post date:** [December 6, 2018, 6:36pm UTC](https://community.influxdata.com/t/telegraf-inputs-http-plugin-json-array-with-json-query/7761/1 "2018-12-06T18:36:15Z")

</div>

I’ve read the docs on JSON parsing ([telegraf/plugins/parsers/json at master · influxdata/telegraf · GitHub](https://github.com/influxdata/telegraf/tree/master/plugins/parsers/json)) yet none seem to accomodate this strucutre. Am I overlooking something?

```
{
    "Count": 15,
    "Items": [
        {
            "Available2g": 7,
            "Date": "2018-12-06T13:36:33.8124561Z",
        },
        {
            "Available2g": 0,
            "Date": "2018-12-06T13:36:33.8124561Z",
        },

        [...]

```

---

<div class="post-metadata">

**Author:** ![daniel](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/daniel/32/142_2.png) [@daniel](https://community.influxdata.com/u/daniel)\
**Post date:** [December 17, 2018, 8:34pm UTC](https://community.influxdata.com/t/telegraf-inputs-http-plugin-json-array-with-json-query/7761/2 "2018-12-17T20:34:19Z")

</div>

I think you will want to start with the `json_query = "Items"` option. If that doesn’t work can you show me how you would prefer it to be parsed using an example in [InfluxDB Line Protocol](https://docs.influxdata.com/influxdb/v1.7/write_protocols/line_protocol_tutorial/)?
