private static MultiValue parseValue(JsonParser parser, String name, ObjectNode node)
            throws JsonProcessingException {
      @SuppressWarnings("unchecked")
      Map<String, Object> values = (Map<String, Object>) parser.getCodec().treeToValue(node, Map.class);
      return new MultiValue(name, values);
    }
Allows to de-serialize nested aggregation structures.
criteria/elasticsearch/src/org/immutables/criteria/elasticsearch/Json.java