Class JsonWriter.Member<T>

java.lang.Object
org.springframework.boot.json.JsonWriter.Member<T>
Type Parameters:
T - the member type
Enclosing interface:
JsonWriter<T>

public static final class JsonWriter.Member<T> extends Object
A member that contributes JSON. Typically, a member will contribute a single name/value pair based on an extracted value. They may also contribute more complex JSON structures when configured with one of the using(...) methods.

The when(...) methods may be used to filter a member (omit it entirely from the JSON). The as(Function) method can be used to adapt to a different type.