This commit is contained in:
nlohmann
2026-10-03 05:43:12 +00:00
parent 2aaa1d24ef
commit a410b4f40f
741 changed files with 8115 additions and 2252 deletions
+4
View File
@@ -36,6 +36,10 @@ For [`ordered_json`](https://json.nlohmann.me/api/ordered_json/index.md), also a
`init` (in) : an initializer list
## Exception safety
Strong guarantee: if an exception is thrown, there are no changes to any JSON value. As an exception, a `null` value is converted to an empty array or object before the element is added and keeps that type if adding the element throws.
## Exceptions
1. Throws [`type_error.308`](https://json.nlohmann.me/home/exceptions/#jsonexceptiontype_error308) when called on a type other than JSON array or null; example: `"cannot use push_back() with number"`