# Type conflict because no type info of value in JSON output

**URL:** <https://community.influxdata.com/t/type-conflict-because-no-type-info-of-value-in-json-output/8156>\
**Category:** Telegraf\
**Tags:** influxdb, telegraf\
**Created:** [January 16, 2019, 6:55am UTC](https://community.influxdata.com/t/type-conflict-because-no-type-info-of-value-in-json-output/8156 "2019-01-16T06:55:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjahn](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@sjahn](https://community.influxdata.com/u/sjahn)\
**Post date:** [January 16, 2019, 6:55am UTC](https://community.influxdata.com/t/type-conflict-because-no-type-info-of-value-in-json-output/8156/1 "2019-01-16T06:55:20Z")

</div>

```auto
[[inputs.system]]

[[outputs.file]]
  files = ["stdout"]
# data_format = "influx" or 
  data_format = "json"

```

In case that data format is “influx”,

```auto
system,host=test2 load5=0,load15=0,n_cpus=1i,n_users=2i,load1=0 1547617860000000000

```

In case that data format is “json”,

```auto
{"fields":{"load1":0,"load15":0,"load5":0.02,"n_cpus":1,"n_users":2},"name":"system","tags":{"host":"test2"},"timestamp":1547616300

```

As above result of “influx” output, we can know whether each value is integer or float. But “json” output, we don’t know because there is no info of type of each value.

We’d like to insert dynamically additional data thru tHTTP gateway with metric collected by telegraf. Service flow is as follow

1. Teletgraf -\> (JSON format via HTTP) -\> HTTP G/W (transform JSON format into Influx format by lua script) -\> (influx line protocol format via HTTP) -\> InfluxDB

If using influx format as http output, there is no problem. But need more coding to parse the influx line protocol format.  
For easy coding, we’d like to utilize JSON format.

Is there any way to describe the type of value in JSON result or other easy way?
