public static JsonNode fromInt(final Integer value) {
        return value == null ? null : new IntNode(value);
    }
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