public static Optional<Instant> optionalInstant(Inspector field) {
        return optional(field, f -> Instant.ofEpochMilli(f.asLong()));
    }
Throws {@link JsonParseException} on invalid JSON.
vespajlib/src/main/java/com/yahoo/slime/SlimeUtils.java