Skip to content

Commit

Permalink
2
Browse files Browse the repository at this point in the history
  • Loading branch information
jalon2015 committed Feb 18, 2022
1 parent 68860d4 commit cc28892
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions demo-swagger3/src/main/java/com/jalon/jackson8/Demo8.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,12 @@ public static void main(String[] args) throws JsonProcessingException {
JsonNode jsonNode7 = objectMapper.readTree(s7);
System.out.println(jsonNode6.equals(jsonNode7));

String s8 = "{\"name\":\"jalon\", \"girlFriend\": [{\"name\":\"xiaomei\"}]}";
String s9 = "{\"name\":\"jalon\", \"girlFriend\": [{\"name\":\"lili\"}]}";
JsonNode jsonNode8 = objectMapper.readTree(s8);
JsonNode jsonNode9 = objectMapper.readTree(s9);
System.out.println(jsonNode8.equals(jsonNode9));


}
}

0 comments on commit cc28892

Please sign in to comment.