mirror of
https://github.com/nlohmann/json.git
synced 2026-10-03 13:10:33 +00:00
deploy: 95e9a5931c
This commit is contained in:
@@ -39,7 +39,7 @@ Strong guarantee: if an exception is thrown, there are no changes in the JSON va
|
||||
|
||||
## Complexity
|
||||
|
||||
Proportional to the size of the JSON value `j` multiplied by its maximum nesting depth, `O(n × d)`. BSON length prefixes are computed recursively before nested values are written.
|
||||
Linear in the size of the JSON value `j`. The length prefixes of all nested documents and arrays are computed in one pass before anything is written.
|
||||
|
||||
## Examples
|
||||
|
||||
@@ -89,3 +89,4 @@ Output:
|
||||
## Version history
|
||||
|
||||
- Added in version 3.4.0.
|
||||
- Linear in the size of `j`, and no longer limited by the call stack for deeply nested values, since version 3.13.0.
|
||||
|
||||
Reference in New Issue
Block a user