title: Inserting list as value in Influxdb
body: <p>Is it possible to somehow insert list as a value in InfluxDB? This is the json:</p>
  
  <pre><code>json_body = [
      {
          "measurement":"devices",
          "tags":{
              "host":"server01",
              "region":"us-west"
  
              },
          "fields": {
  
  
              "device":1234,
              "coord":[60.177751,24.913778],
              "local":[[244,5,'232E','F27B',23],[244,5,'232F','76FE',9]]
  
  
              }
  
          }
      ]
  </code></pre>
  
  <p>Alternative would be to use string representation of list but then I have to convert it to list like below, which works fine. </p>
  
  <blockquote>
    <p>ast.literal_eval(device_points[0]['local']) </p>
  </blockquote>
  
  <p>Here is the json object with string representations:</p>
  
  <pre><code>json_body = [
      {
          "measurement":"devices",
          "tags":{
              "host":"server01",
              "region":"us-west"
  
              },
          "fields": {
  
  
              "device":1234,
              "coord":"[60.177751,24.913778]",
              "local":"[[244,5,'232E','F27B',23],[244,5,'232F','76FE',9]]"
  
  
              }
  
          }
      ]
  
  client.write_points(json_body)
  
  query = 'select local from devices;'
  
  print("Querying data: " + query)
  
  result = client.query(query)
  
  device_points = list(result.get_points(measurement='devices'))
  </code></pre>
  
  <p>Is there some other way to achieve writing of lists directly?</p>
  
  <p>Thanks!  </p>