I have Java bean class, for example:
public class User implements Serializable{
protected String Name = null;
protected String Password = null;
// ...
}
I can convert it easily to org.json object using
User u = new User();
u.setName("AAA");
u.setPassword("123");
JSONObject jo = new JSONObject(u);
Is it way to convert JSONObject to Java bean class?