code: public void evaluateJSONElementOperation(Object o, String condition, String result) throws Exception {
  
          if (o instanceof String) {
              String value = (String) o;
              switch (condition) {
                  case "equal":
                      assertThat(value).as("Evaluate JSONPath does not match with proposed value").isEqualTo(result);
                      break;
                  case "not equal":
                      assertThat(value).as("Evaluate JSONPath match with proposed value").isNotEqualTo(result);
                      break;
                  case "contains":
                      assertThat(value).as("Evaluate JSONPath does not contain proposed value").contains(result);
                      break;
                  case "does not contain":
                      assertThat(value).as("Evaluate JSONPath contain proposed value").doesNotContain(result);
                      break;
                  case "size":
                      JsonValue jsonObject = JsonValue.readHjson(value);
                      if (jsonObject.isArray()) {
                          assertThat(jsonObject.asArray()).as("Keys size does not match").hasSize(Integer.parseInt(result));
                      } else {
                          Assertions.fail("Expected array for size operation check");
                      }
                      break;
                  default:
                      Assertions.fail("Not implemented condition");
                      break;
              }
          } else if (o instanceof List) {
              List<String> keys = (List<String>) o;
              switch (condition) {
                  case "contains":
                      assertThat(keys).as("Keys does not contain that name").contains(result);
                      break;
                  case "size":
                      assertThat(keys).as("Keys size does not match").hasSize(Integer.parseInt(result));
                      break;
                  default:
                      Assertions.fail("Operation not implemented for JSON keys");
              }
          }
  
      }
docs: Evaluate an expression.
  <p>
  Object o could be a string or a list.
  
  @param o         object to be evaluated
  @param condition condition to compare
  @param result    expected result