jsonobject to java object

Java
   class Name{
String resultCode;
UserIdentifier useridentifier;
//getters

}

Gson gson=new Gson();
Name name=gson.fromJson(jsonString,Name.class);
Source

Also in Java: