Code example for GsonBuilder

Methods: create

0
    } 
 
    @Override 
    protected void extractEntity() { 
        String stringToParse = response.getRawBody();
        GsonBuilder gsonBuilder = new GsonBuilder();
        Gson gson = gsonBuilder.create();
        QBSessionWrap sessionWrap = gson.fromJson(stringToParse, QBSessionWrap.class);
        session = sessionWrap.getSession();
    } 
} 
Experience pair programming with AI  Get Codota for Java