Skip to content

Encode infinity and NaN as float for MsgPack and CBOR#4802

Merged
nlohmann merged 2 commits intodevelopfrom
issue4798-inf-as-float
Jun 1, 2025
Merged

Encode infinity and NaN as float for MsgPack and CBOR#4802
nlohmann merged 2 commits intodevelopfrom
issue4798-inf-as-float

Conversation

@nlohmann
Copy link
Owner

@nlohmann nlohmann commented Jun 1, 2025

Closes #4798.

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
@nlohmann nlohmann added this to the Release 3.12.1 milestone Jun 1, 2025
@nlohmann nlohmann added the review needed It would be great if someone could review the proposed changes. label Jun 1, 2025
@coveralls
Copy link

coveralls commented Jun 1, 2025

Coverage Status

coverage: 99.19%. remained the same
when pulling f1a2c5c on issue4798-inf-as-float
into 82f4f70 on develop.

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
@nlohmann nlohmann merged commit b19f058 into develop Jun 1, 2025
143 checks passed
@nlohmann nlohmann deleted the issue4798-inf-as-float branch June 1, 2025 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

M review needed It would be great if someone could review the proposed changes. tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nlohmann::json::to_msgpack() encode float NaN as double

3 participants