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 Summary
Modifier and TypeMethodDescriptionvoid
convert
(T value, StrictJsonWriter writer) Convert the given value to JSON using the JSON writer.
-
Method Details
-
convert
Convert the given value to JSON using the JSON writer.- Parameters:
value
- the value, which may be null depending on the typewriter
- the JSON writer
-