Class JsonBinding


  • public final class JsonBinding
    extends Object
    Contains utility methods for working with JSON-B.
    See Also:
    Jsonb
    • Method Detail

      • reader

        public static Reader<Object> reader​(javax.json.bind.Jsonb jsonb)
        Returns a new Reader that converts a Publisher of ByteBuffers to a Java object.

        This method is intended for the derivation of other, more specific readers.

        Parameters:
        jsonb - the Jsonb to use; must not be null
        Returns:
        the byte array content reader that transforms a publisher of byte buffers to a completion stage that might end exceptionally with a RuntimeException in case of I/O error
        Throws:
        NullPointerException - if objectMapper is null