如: HashSet<String> ignorePath = new HashSet<>(); //所有的id ignorePath .add("$..id"); //items中name等于张三的忽略age ignorePath .add("$.items[?(@.name == '张三')].age"); HashMap<String, String> mapping = new HashMap<>(); mapping.put("$.date", "$.sunrise");