@NonNull
    public static <T> List<T> toList(final JsonNode node, final Func1<JsonNode, T> mapper) {
        if (node == null || !(node.isArray())) {
            return Collections.emptyList();
        }
        final List<T> result = new ArrayList<>();
        for (JsonNode child : node) {
            final T value = child == null ? null : mapper.call(child);
            result.add(value instanceof NullNode ? null : value);
        }
        return result;
    }
constructs a boolean value from a node. If node is null or not boolean, defaultValue is returned.
main/src/main/java/cgeo/geocaching/utils/JsonUtils.java