How can i convert a json objet to java bean(MainBean) of following type
class MainBean{
private int id;
private SubBean sBean;
}
class SubBean{
private String name;
private List<DBean> dBean;
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are alot of libraries that can do it.
For exanple, you can do it using
Google-GsonJSON like this will be converted well