public static < T > JsonCodec < T > create ( Class < T > clazz ) { return new JsonCodec < T > ( clazz , DefaultGsonHolder . INSTANCE ) ; }
Creates a new JSON codec instance for objects of the specified class .