简体   繁体   中英

Map json data to java bean

Java: Json library to map json data to java bean.

As beanutil's describe and populate method is there any java library which takes input json object and respective java bean and map json data into java bean ?

I use gson

Gson gson = new Gson();
MyJavaBean bean = gson.fromJson(strJson,MyJavaBean.class);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM