Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java jackson optional

ObjectMapper mapper = new ObjectMapper();
mapper.registerModule(new Jdk8Module());
String jsonString = mapper.writeValueAsString(optionalObject);
 
PREVIOUS NEXT
Tagged: #java #jackson #optional
ADD COMMENT
Topic
Name
4+3 =