public Object deserialize(final Type manifest,final byte[] body,final int size) throws IOException {
  if (manifest instanceof Class<?>) {
    return deserialize((Class<?>)manifest,body,size);
  }
  if (isNull(size,body)) {
    return null;
  }
  final JsonReader json=new JsonReader<TContext>(body,size,context);
  json.getNextToken();
  if (json.wasNull()) {
    return null;
  }
  final Object result=deserializeWith(manifest,json);
  if (result != null)   return result;
  if (fallback != null) {
    return fallback.deserialize(context,manifest,body,size);
  }
  throw new IOException("Unable to find reader for provided type: " + manifest + " and fallback serialization is not registered.\n"+ "Try initializing DslJson with custom fallback in case of unsupported objects or register specified type using registerReader into "+ getClass());
}

public Object deserialize ( final Type manifest , final byte [ ] body , final int size ) throws IOException { if ( manifest instanceof Class < ? > ) { return deserialize ( ( Class < ? > ) manifest , body , size ) ; } if ( isNull ( size , body ) ) { return null ; } final JsonReader json = new JsonReader < TContext > ( body , size , context ) ; json . getNextToken ( ) ; if ( json . wasNull ( ) ) { return null ; } final Object result = deserializeWith ( manifest , json ) ; if ( result != null ) return result ; if ( fallback != null ) { return fallback . deserialize ( context , manifest , body , size ) ; } throw new IOException ( "Unable to find reader for provided type: " + manifest + " and fallback serialization is not registered.\n" + "Try initializing DslJson with custom fallback in case of unsupported objects or register specified type using registerReader into " + getClass ( ) ) ; }
deserialize api for working with bytes . deserialize provided byte input into target object . < p > since json is often though of as a series of char , most libraries will convert inputs into a sequence of chars and do processing on them . dsljson will treat input as a sequence of bytes which allows for various optimizations .
