
net.hamnaberg.json.EncodeJson Maven / Gradle / Ivy
package net.hamnaberg.json;
import java.util.Optional;
public interface EncodeJson {
Optional toJson(A value);
default Json.JValue toJsonUnsafe(A value) {
return toJson(value).orElse(null);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy