Jackson序列化和反序列化Json数据(3)

Employee Object
***** Employee Details *****
ID=123
Name=Pankaj
Permanent=true
Role=Manager
Phone Numbers=[123456, 987654]
Address=Albany Dr, San Jose, 95129
Cities=[Los Angeles, New York]
Properties={age=29 years, salary=1000 USD}
*****************************
Employee JSON is
{
  "id" : 100,
  "name" : "David",
  "permanent" : false,
  "address" : {
    "street" : "BTM 1st Stage",
    "city" : "Bangalore",
    "zipcode" : 560100
  },
  "phoneNumbers" : [ 123456, 987654 ],
  "role" : "Manager",
  "cities" : [ "Los Angeles", "New York" ],
  "properties" : {
    "salary" : "1000 Rs",
    "age" : "28 years"
  }
}

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/332644345779b43fb400ee900cc87759.html