@Target(value=TYPE)
@Retention(value=CLASS)
public @interface JsonObject
@JsonObject
public class MyClass {
...
}
| Modifier and Type | Optional Element and Description |
|---|---|
JsonObject.FieldDetectionPolicy |
fieldDetectionPolicy
Allows control over which fields will be used by LoganSquare for parsing and
serializing.
|
JsonObject.FieldNamingPolicy |
fieldNamingPolicy
Allows control over what field names LoganSquare expects in the JSON when parsing
and how the fields are named while serializing.
|
boolean |
serializeNullCollectionElements
Allows control over whether or not null collection and array elements are serialized.
|
boolean |
serializeNullObjects
Allows control over whether or not null fields are serialized.
|
public abstract JsonObject.FieldDetectionPolicy fieldDetectionPolicy
public abstract JsonObject.FieldNamingPolicy fieldNamingPolicy