Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected <T> T parseaJson(Class<T> t, byte[] responseBody) {
- T data = null;
- try {
- data = new Gson().fromJson(Funciones.byteToString(responseBody),(Type) t);
- } catch (JsonSyntaxException e) {
- Log.e(TAG,"Error al parsear el JSON");
- }
- return data;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement