json_object_get_int/int64/uint64() now sets errno to ERANGE when the source value can't be represented in the target type.
Json objects of type double with the value NaN could cause undefined behavior when casting double to int in `json_object_get_int`.