public static OptionalDouble optionalDouble(Inspector field) {
        return isPresent(field) ? OptionalDouble.of(field.asDouble()) : OptionalDouble.empty();
    }
Throws {@link JsonParseException} on invalid JSON.
vespajlib/src/main/java/com/yahoo/slime/SlimeUtils.java