docs: public TSQuery parseQueryV1() {
      final String json = query.getContent();
      if (json == null || json.isEmpty()) {
        throw new BadRequestException(HttpResponseStatus.BAD_REQUEST,
            "Missing message content",
            "Supply valid JSON formatted data in the body of your request");
      }
      try {
        TSQuery data_query =  JSON.parseToObject(json, TSQuery.class);
        // Filter out duplicate queries
        Set<TSSubQuery> query_set = new LinkedHashSet<TSSubQuery>(data_query.getQueries());
        data_query.getQueries().clear();
        data_query.getQueries().addAll(query_set);
        return data_query;
      } catch (IllegalArgumentException iae) {
        throw new BadRequestException("Unable to parse the given JSON", iae);
      }
    }