diff --git a/demo-swagger3/src/main/java/com/jalon/jackson8/Demo8.java b/demo-swagger3/src/main/java/com/jalon/jackson8/Demo8.java index 152d02e..1aa71e2 100644 --- a/demo-swagger3/src/main/java/com/jalon/jackson8/Demo8.java +++ b/demo-swagger3/src/main/java/com/jalon/jackson8/Demo8.java @@ -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)); + + } }