This commit is contained in:
nlohmann
2026-09-15 20:47:46 +00:00
parent 7b7abfd224
commit db9042b6ac
306 changed files with 4213 additions and 781 deletions
File diff suppressed because one or more lines are too long
+6
View File
@@ -21,6 +21,11 @@ To store strings in C++, a type is defined by the template parameter described b
processing internally, so `std::wstring`, `std::u16string`, and `std::u32string` are **not** valid choices for
`StringType`. To work with wide-character data, convert it to/from UTF-8 at the boundary instead -- see the
FAQ's [wide string handling](https://json.nlohmann.me/home/faq/#wide-string-handling) section for a conversion recipe.
Beyond the character type, the library expects a substantial part of the `std::string` interface (contiguous
null-terminated `data()`, `substr()`, `find()`, `append()`, ...). See
[Template Parameter Requirements](https://json.nlohmann.me/features/types/template_parameters/#stringtype) for the full list and
for the string types that are known to work.
```
## Notes
@@ -77,3 +82,4 @@ true
## Version history
- Added in version 1.0.0.
- Removed the requirement that `string_t` be implicitly convertible from `std::string`, which the BSON writer and the UBJSON reader relied on, in version 3.13.0.