title: Deserialize JSON from InfluxDB REST in Unity3d with UnityEngine.JsonUtility
body: <p>Im having problem deserielizing the JSON response from influxDB in C# using Unity3d's JsonUtility class. </p>
  
  <p>I used json2csharp.com to generate my class. The problem seems to be that there is a List with a List of objects in the result JSON string.</p>
  
  <p>this is an example JSON result from InfluxDB:</p>
  
  <pre><code>{
      "results": [
          {
              "statement_id": 0,
              "series": [
                  {
                      "name": "cpu_load_short",
                      "columns": [
                          "time",
                          "value"
                      ],
                      "values": [
                          [
                              "2015-01-29T21:55:43.702900257Z",
                              2
                          ],
                          [
                              "2015-01-29T21:55:43.702900257Z",
                              0.55
                          ],
                          [
                              "2015-06-11T20:46:02Z",
                              0.64
                          ]
                      ]
                  }
              ]
          }
      ]
  }
  </code></pre>
  
  <p>And this is the generated class from json2csharp:</p>
  
  <pre><code>public class Series
  {
      public string name { get; set; }
      public List&lt;string&gt; columns { get; set; }
      public List&lt;List&lt;object&gt;&gt; values { get; set; }
  }
  
  public class Result
  {
      public int statement_id { get; set; }
      public List&lt;Series&gt; series { get; set; }
  }
  
  public class RootObject
  {
      public List&lt;Result&gt; results { get; set; }
  }
  </code></pre>
  
  <p>I Just can't figure out how to handle the <code>List&lt;List&lt;object&gt;&gt;</code> in the values field.</p>
  
  <p>When running the program I get this log output (this is not the example JSON but an actual result from my DB, the formatting is the same though):</p>
  
  <pre><code>InfluxResult (
      (List`1) results = List`1&lt;Result&gt; [
          Result (
              (Int32) statement_id = 0;
              (List`1) series = List`1&lt;Series&gt; [
                  Series (
                      (String) name = "gf_hallway_temperature";
                      (List`1) columns = List`1&lt;String&gt; [
                          "time",
                          "value",
                      ];
                      (List`1) values = Null;
                  ),
              ];
          ),
      ];
  )
  </code></pre>
  
  <p>It parses one level deeper if I do:</p>
  
  <pre><code>[Serializable]
  public class Series
  {
      public string name;// { get; set; }
      public List&lt;string&gt; columns; // { get; set; }
      public List&lt;ValueSet&gt; values; // { get; set; }
  }
  
  [Serializable]
  public class ValueSet
  {
      public List&lt;object&gt; values;
  }
  </code></pre>
  
  <p>But that obviously just parses the values as a list of empty objects. But they correspond to the correct count of the list of "valuesets".</p>
  
  <p>I am a hobby-level developer so I might miss something fundamental here. I guess the json2csharp generator fails becouse of the nested lists? But how should this be handled, is it possible with UnityEngine.JsonUtility? Also, the "valueset" varies depending on how the DB is setup so the list of columns represent the list of values and the type of each field in the row in series, if Im making any sense, so i guess there have to be some sort of generic object and I'll handle the problems that generates later on.</p>