jsonobject to java object

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

}

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