109110111112113114115116
@Override public <T> T deserializeObject(JsonObject json, Class<T> type) { try { return mapper.readValue(json.encode(), type); } catch (Exception e) { throw new DeserializationException(e.getMessage()); } }
118119120121122123124125
@Override public <T> T deserializeObject(JsonObject json, TypeReference<T> type) { try { return mapper.readValue(json.encode(), type); } catch (Exception e) { throw new DeserializationException(e.getMessage()); } }
127128129130131132133134
@Override public <T> T deserializeObject(JsonArray json, Class<T> type) { try { return mapper.readValue(json.encode(), type); } catch (Exception e) { throw new DeserializationException(e.getMessage()); } }
136137138139140141142143
@Override public <T> T deserializeObject(JsonArray json, TypeReference<T> type) { try { return mapper.readValue(json.encode(), type); } catch (Exception e) { throw new DeserializationException(e.getMessage()); } }