Package org.bson.json

Interface Converter<T>

  • Type Parameters:
    T - the value type to convert

    public interface Converter<T>
    A converter from a BSON value to JSON.
    Since:
    3.5
    • Method Detail

      • convert

        void convert​(T value,
                     StrictJsonWriter writer)
        Convert the given value to JSON using the JSON writer.
        Parameters:
        value - the value, which may be null depending on the type
        writer - the JSON writer