Class JSR353Bundle.JsonValueConverter

    • Constructor Detail

      • JsonValueConverter

        public JsonValueConverter()
    • Method Detail

      • serialize

        public void serialize​(javax.json.JsonValue value,
                              ObjectWriter writer,
                              Context ctx)
        Specified by:
        serialize in interface Converter<javax.json.JsonValue>
        Specified by:
        serialize in interface Serializer<javax.json.JsonValue>
        Parameters:
        value - we want to serialize. The object is of type T or a subclass (if this serializer has been registered for subclasses).
        writer - to use to write data to the output stream.
        ctx - the current context.
      • deserialize

        public javax.json.JsonValue deserialize​(ObjectReader reader,
                                                Context ctx)
        Specified by:
        deserialize in interface Converter<javax.json.JsonValue>
        Specified by:
        deserialize in interface Deserializer<javax.json.JsonValue>
        Parameters:
        reader - used to read data from.
        ctx - the current context.
        Returns:
        an instance of T or a subclass of T.