@Target(value=TYPE) @Retention(value=CLASS) public @interface JsonConverter
@JsonConverter(target=Instant.class)
public abstract InstantConverter {
public static Instant read(JsonReader reader) { ... }
public static void write(JsonWriter writer, Instant value) { ... }
public static Instant default() { ... }
}
Date type will be one of the supported types.public abstract Class target
Copyright © 2023. All rights reserved.