m0_37746602
m0_37746602
2017-12-06 02:54

java中比较两个json数组不同的json对象并返回不同的json对象

10
  • java
  • 对象
  • json

jsonArray array1 = [{"award_number":1,"start_time":"2017-12-04 17:17:35","end_time":"2017-12-09 17:17:39"},{"award_number":2,"start_time":"2017-12-09 17:17:35","end_time":"2017-12-12 17:17:39"},{"award_number":2,"start_time":"2017-12-12 17:17:35","end_time":"2017-12-14 17:17:39"},{"award_number":3,"start_time":"2017-12-14 17:17:35","end_time":"2017-12-16 17:17:39"}]
jsonArray array2 = [{"award_number":1,"start_time":"2017-12-04 17:17:35","end_time":"2017-12-09 17:17:39"},{"award_number":2,"start_time":"2017-12-09 17:17:35","end_time":"2017-12-12 17:17:39"},{"award_number":2,"start_time":"2017-12-12 17:17:35","end_time":"2017-12-14 17:17:39"},{"award_number":3,"start_time":"2017-12-14 17:17:35","end_time":"2017-12-16 17:17:39"},{"award_number":4,"start_time":"2017-12-16 17:17:35","end_time":"2017-12-18 17:17:39"}]

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

12条回答