code: public String removeJSONPathElement(String jsonString, String expr) {
  
          Configuration conf = Configuration.builder().jsonProvider(new GsonJsonProvider()).mappingProvider(new GsonMappingProvider()).build();
          DocumentContext context = JsonPath.using(conf).parse(jsonString);
          context.delete(expr);
          return context.jsonString();
      }
docs: Remove a subelement in a JsonPath
  
  @param jsonString String of the json
  @param expr       regex to be removed