Skip to content

Commit

Permalink
feat: add jsonpath parse
Browse files Browse the repository at this point in the history
  • Loading branch information
rchen9 committed Jan 17, 2024
1 parent ec107e8 commit 3a18a08
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,10 @@ private void getInclusionsObj(Object obj, Object whiteObj, List<String> white) {
tempWhiteObj = JacksonHelperUtil.getObjectNode();
getInclusionsObj(tempObj, tempWhiteObj, white.subList(i, white.size()));
whiteObjArr.add((ObjectNode) tempWhiteObj);
// whiteObjArr.set(j, (ObjectNode) tempWhiteObj);
} else if (tempObj instanceof ArrayNode) {
tempWhiteObj = JacksonHelperUtil.getArrayNode();
getInclusionsObj(tempObj, tempWhiteObj, white.subList(i, white.size()));
whiteObjArr.add((ArrayNode) tempWhiteObj);
// whiteObjArr.set(j, (ArrayNode) tempWhiteObj);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,21 +86,4 @@ private static MutablePair<List<ExpressionNodeEntity>, Boolean> registerExpressi
return new MutablePair<>(result, isExpression);
}

// private static List<ExpressionNodeEntity> convertNameNode(List<String> exclusion) {
//
// if (exclusion == null || exclusion.isEmpty()) {
// return null;
// }
//
// List<ExpressionNodeEntity> result = new ArrayList<>();
// for (String item : exclusion) {
// // judge if it is a expression
// if (!item.startsWith(Constant.EXPRESSION_PATH_IDENTIFIER_START) || !item.endsWith(
// Constant.EXPRESSION_PATH_IDENTIFIER_END)) {
// result.add(new ExpressionNodeEntity(item, ExpressionNodeType.NAME_NODE));
// }
// }
// return result;
// }

}

0 comments on commit 3a18a08

Please sign in to comment.