code: public static String evaluateAsString(ReadContext readerContext, String jsonPathExpression) {
          Object jsonPathResult = evaluate(readerContext, jsonPathExpression);
  
          if (jsonPathResult instanceof JSONArray) {
              return ((JSONArray) jsonPathResult).toJSONString();
          } else if (jsonPathResult instanceof JSONObject) {
              return ((JSONObject) jsonPathResult).toJSONString();
          } else {
              return Optional.ofNullable(jsonPathResult).map(Object::toString).orElse("null");
          }
      }
docs: Evaluate JsonPath expression using given read context and return result as string.
  @param readerContext
  @param jsonPathExpression
  @return