Docs: reading and writing files; patch_inplace() is not atomic (#6017)

This commit is contained in:
Niels Lohmann authored and GitHub committed 2026-11-04 17:46:20 +01:00
1 parent 42825fba07
commit a49242f088
10 files changed
+166 -7

No files matched your search

@@ -17,6 +17,9 @@ To write a value directly to a stream (for example, a file or `#!cpp std::cout`)
std::cout << j << std::endl;
```
To write a file without leaving a truncated file behind when serialization fails, see
[Reading and writing files](files.md#writing-a-json-file).
!!! note "String, not raw value"
`dump` always returns a **JSON text**. Serializing a JSON string therefore includes the surrounding quotes and