This commit is contained in:
nlohmann
2026-09-25 11:09:11 +00:00
parent 5831f33884
commit 10e005271b
274 changed files with 716 additions and 501 deletions

File diff suppressed because one or more lines are too long

View File

@@ -230,6 +230,10 @@ Complete mapping
The mapping is **complete** in the sense that any BJData value can be converted to a JSON value.
Round trips
A value returned by [`from_bjdata`](https://json.nlohmann.me/api/basic_json/from_bjdata/index.md) can be serialized with [`to_bjdata`](https://json.nlohmann.me/api/basic_json/to_bjdata/index.md) using any combination of options and parsed back into an equal value, and serializing that value again with the same options produces the same bytes. The exception is binary values: they are only written as an optimized binary array (`[$B`) if Draft 3 is enabled and both `use_size` and `use_type` are set. Otherwise, they are written as arrays of integers and parsed back as such (see the notes on binary values above), and serializing such an array again may choose different, but equally valid, type markers. The bytes can then differ, but parsing them again yields the same value.
Example
```