Package com.tnsai.output.annotations
Annotation Interface Formatted
Annotation to specify the output format for a class.
When applied to a class, the agent will automatically use the specified format when serializing instances of that class.
Example usage:
@Formatted(OutputFormat.YAML)
public class SpecResponse {
private String setting;
private int value;
}
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe output format to use for serialization.
-
Element Details
-
value
OutputFormat valueThe output format to use for serialization.- Returns:
- the output format, defaults to JSON
- Default:
JSON
-