Skip to content

Commit

Permalink
one last tweak wrt #145 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Feb 29, 2020
1 parent b6163df commit 2978de2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,9 @@ public static JsonNode nullNode() {
}

public static JsonNode objectToJsonNode(Object defaultValue) {
if (defaultValue == JsonProperties.NULL_VALUE) {
return nullNode();
}
return DEFAULT_VALUE_MAPPER.convertValue(defaultValue, JsonNode.class);
}

Expand Down

0 comments on commit 2978de2

Please sign in to comment.