Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public static <V> LinkedHashMap<String, V> parseJsonMap(String jsonString, Class
public static <T extends JsonNode> T getNodeAs(
JsonNode root, String fieldName, Class<T> clazz) {
JsonNode node = root.get(fieldName);
if (node == null) {
if (isNull(node)) {
return null;
}

Expand Down Expand Up @@ -224,7 +224,7 @@ public static <T> T extractValueOrDefault(
throws JsonProcessingException {
for (String key : path) {
jsonNode = jsonNode.get(key);
if (jsonNode == null) {
if (isNull(jsonNode)) {
if (defaultValue != null) {
return defaultValue;
}
Expand All @@ -244,7 +244,7 @@ public static <T> T extractValue(JsonNode jsonNode, Class<T> valueType, String..
public static boolean isNodeExists(JsonNode jsonNode, String... path) {
for (String key : path) {
jsonNode = jsonNode.get(key);
if (jsonNode == null) {
if (isNull(jsonNode)) {
return false;
}
}
Expand Down