Niels Lohmann

Results 421 comments of Niels Lohmann

Would it make sense to also have an overload for integral types just like at or operator[]?

See https://json.nlohmann.me/features/types/number_handling/#nan-handling

Adding an exception when assigning a `NaN` to a JSON value has two problems: - It is a breaking change, and we don't want to add those lightheartedly. - It...

Any idea to proceed here without adding a breaking change?

As for now, the library will not support NaN values.

There is an error and index 0 which means already the first byte is invalid. The spec (https://bsonspec.org/spec.html) does not allow byte `0xB6` as first byte. When I look at...