Code example for JsonParser

Methods: parse

0
    } 
 
    @Override 
    public final void onRequestSuccess(String response) {
        ApiResponse apiResponse = new ApiResponse();
        final JsonParser parser=new JsonParser();
        JsonElement json=parser.parse(response);
        apiResponse.setJson(json);
        this.onRequestSuccess(apiResponse);
    } 
 
    public abstract void onRequestSuccess(ApiResponse response);
} 
Experience pair programming with AI  Get Codota for Java