title: How do I map a heterogeneous JSON array to a Java object?
body: <p>I've downloaded a large amount of historic crypto market data via an API. It is formatted like this:</p>
  <pre><code>[
  [1601510400000,&quot;4.15540000&quot;,&quot;4.16450000&quot;,&quot;4.15010000&quot;,&quot;4.15030000&quot;,&quot;4483.01000000&quot;,1601510459999,&quot;18646.50051400&quot;,50,&quot;2943.27000000&quot;,&quot;12241.83706500&quot;,&quot;0&quot;],
  ...
  [1609490340000,&quot;4.94020000&quot;,&quot;4.95970000&quot;,&quot;4.93880000&quot;,&quot;4.94950000&quot;,&quot;5307.62000000&quot;,1609490399999,&quot;26280.03711000&quot;,98,&quot;3751.46000000&quot;,&quot;18574.22402400&quot;,&quot;0&quot;]
  ]
  </code></pre>
  <p>I take that to be an array of arrays, the inner one containing heterogeneous types (always the same types in the same order). As an intermediate step I've saved it to text files but I'd like to read it back and map it onto an array of objects of this type:</p>
  <pre><code>    public class MinuteCandle {
          private long openTime;
          private double openValue;
          private double highValue;
          private double lowValue;
          private double closeValue;
          private double volume;
          private long closeTime;
          private double quoteAssetVolume;
          private int numberOfTrades;
          private double takerBuyBaseAssetVolume;
          private double takerBuyQuoteAssetVolume;
          private double someGarbageData;
  //...
  }
  </code></pre>
  <p>I'm using the Spring Framework and the jackson library for json mapping. Is it doable with that or should I manually parse the text somehow?</p>