code: private void parseObject(JsonReader in, HashMap<String, Object> objMap, String name) throws IOException {
      HashMap<String, Object> innerObject = new HashMap<>();
      in.beginObject();
  
      while (in.peek() != JsonToken.END_OBJECT) {
        parseNext(in, innerObject);
      }
  
      in.endObject();
      objMap.put(name, innerObject);
    }
docs: Parses a JSON object and adds it to the main object map.
  
  @param in {@link JsonReader} object used for parsing
  @param objMap Map used to build the structure for the resulting {@link QueryAggregation} object
  @param name key value to go with the resulting value of this method pass
  @throws IOException signals that there has been an IO exception