@Test public void specificValueTest() { String specificJson = "{\"value\": \"abcd\1nefg\"}"; TestEntity testEntity = SSJsonSerializer.DEFAULT.deserialize(new ByteArrayInputStream(specificJson.getBytes()), TestEntity.class); assertNotNull(testEntity.getValue()); }
@Override public <T> T deserialize(InputStream is, Class<T> clazz) { try { return _mapper.readValue(is, clazz); } catch (RuntimeException | Error ex) { throw ex; } catch (Exception ex) { throw new SerializationException(ex); } }
SSJsonSerializer implements StreamSerializer, StringSerializer { @Override public <T> T deserialize(InputStream is, Class<T> clazz) { try { return _mapper.readValue(is, clazz); } catch (RuntimeException | Error ex) { throw ex; } catch (Exception ex) { throw new SerializationException(ex); } } }
SSJsonSerializer implements StreamSerializer, StringSerializer { @Override public <T> T deserialize(InputStream is, Class<T> clazz) { try { return _mapper.readValue(is, clazz); } catch (RuntimeException | Error ex) { throw ex; } catch (Exception ex) { throw new SerializationException(ex); } } SSJsonSerializer();  SSJsonSerializer(SSJsonSerializerConfig config); }
SSJsonSerializer implements StreamSerializer, StringSerializer { @Override public <T> T deserialize(InputStream is, Class<T> clazz) { try { return _mapper.readValue(is, clazz); } catch (RuntimeException | Error ex) { throw ex; } catch (Exception ex) { throw new SerializationException(ex); } } SSJsonSerializer();  SSJsonSerializer(SSJsonSerializerConfig config); @Override String contentType(); @Override void serialize(OutputStream os, Object obj); @Override T deserialize(InputStream is, Class<T> clazz); @Override String serialize(Object obj); @Override T deserialize(String s, Class<T> clazz); }
SSJsonSerializer implements StreamSerializer, StringSerializer { @Override public <T> T deserialize(InputStream is, Class<T> clazz) { try { return _mapper.readValue(is, clazz); } catch (RuntimeException | Error ex) { throw ex; } catch (Exception ex) { throw new SerializationException(ex); } } SSJsonSerializer();  SSJsonSerializer(SSJsonSerializerConfig config); @Override String contentType(); @Override void serialize(OutputStream os, Object obj); @Override T deserialize(InputStream is, Class<T> clazz); @Override String serialize(Object obj); @Override T deserialize(String s, Class<T> clazz); static final SSJsonSerializer DEFAULT; }