// Path: src/main/java/com/github/levin81/daelic/druid/result/TimeseriesResult.java
// @JsonDeserialize(using = TimeseriesResultDeserializer.class)
// public class TimeseriesResult {
// 
//     private final List<TimeseriesRowResult> rows;
// 
//     public TimeseriesResult(List<TimeseriesRowResult> rows) {
//         this.rows = rows;
//     }
// 
//     public List<TimeseriesRowResult> getRows() {
//         return rows;
//     }
// }
// 
// Path: src/main/java/com/github/levin81/daelic/druid/result/TimeseriesRowResult.java
// public class TimeseriesRowResult {
// 
//     private final ZonedDateTime timestamp;
//     private final Map<String, Object> data;
// 
//     @JsonCreator
//     public TimeseriesRowResult(@JsonProperty("timestamp") ZonedDateTime timestamp,
//                                @JsonProperty("result") Map<String, Object> data) {
//         this.timestamp = timestamp;
//         this.data = data;
//     }
// 
//     public ZonedDateTime getTimestamp() {
//         return timestamp;
//     }
// 
//     public Map<String, Object> getData() {
//         return data;
//     }
// }


import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
import com.github.levin81.daelic.druid.result.TimeseriesResult;
import com.github.levin81.daelic.druid.result.TimeseriesRowResult;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
package com.github.levin81.daelic.druid.result.deserializer;



public class TimeseriesResultDeserializer extends StdDeserializer<TimeseriesResult> {

    public TimeseriesResultDeserializer() {
        this(null);
    }

    private TimeseriesResultDeserializer(Class<?> vc) {
        super(vc);
    }

    @Override
    public TimeseriesResult deserialize(JsonParser p, DeserializationContext ctxt) throws IOException {
        List<TimeseriesRowResult> rows =
// Path: src/main/java/com/github/levin81/daelic/druid/result/TimeseriesResult.java
// @JsonDeserialize(using = TimeseriesResultDeserializer.class)
// public class TimeseriesResult {
// 
//     private final List<TimeseriesRowResult> rows;
// 
//     public TimeseriesResult(List<TimeseriesRowResult> rows) {
//         this.rows = rows;
//     }
// 
//     public List<TimeseriesRowResult> getRows() {
//         return rows;
//     }
// }
// 
// Path: src/main/java/com/github/levin81/daelic/druid/result/TimeseriesRowResult.java
// public class TimeseriesRowResult {
// 
//     private final ZonedDateTime timestamp;
//     private final Map<String, Object> data;
// 
//     @JsonCreator
//     public TimeseriesRowResult(@JsonProperty("timestamp") ZonedDateTime timestamp,
//                                @JsonProperty("result") Map<String, Object> data) {
//         this.timestamp = timestamp;
//         this.data = data;
//     }
// 
//     public ZonedDateTime getTimestamp() {
//         return timestamp;
//     }
// 
//     public Map<String, Object> getData() {
//         return data;
//     }
// }


// Path: src/main/java/com/github/levin81/daelic/druid/result/deserializer/TimeseriesResultDeserializer.java
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
import com.github.levin81.daelic.druid.result.TimeseriesResult;
import com.github.levin81.daelic.druid.result.TimeseriesRowResult;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;

package com.github.levin81.daelic.druid.result.deserializer;



public class TimeseriesResultDeserializer extends StdDeserializer<TimeseriesResult> {

    public TimeseriesResultDeserializer() {
        this(null);
    }

    private TimeseriesResultDeserializer(Class<?> vc) {
        super(vc);
    }

    @Override
    public TimeseriesResult deserialize(JsonParser p, DeserializationContext ctxt) throws IOException {
        List<TimeseriesRowResult> rows =
                Arrays.asList(p.getCodec().readValue(p, TimeseriesRowResult[].class));