This commit is contained in:
nlohmann committed 2026-10-27 12:14:00 +00:00
1 parent b36f8a9821
commit 11a863958e
1180 files changed
+14211 -6025

No files matched your search

+6 -5
View File
@@ -6,7 +6,7 @@ Defined in header `<nlohmann/json_view.hpp>`
using ordered_json_editable_document = basic_json_document<ordered_json, view_mode::editable>;
```
This type is an **editable** [`basic_json_document`](https://json.nlohmann.me/api/basic_json_document/index.md) of the [`ordered_json`](https://json.nlohmann.me/api/ordered_json/index.md) specialization: [`set`](https://json.nlohmann.me/api/basic_json_document/set/index.md) and [`push_back`](https://json.nlohmann.me/api/basic_json_document/push_back/index.md) change values after parsing, as for [`json_editable_document`](https://json.nlohmann.me/api/json_editable_document/index.md), and [`materialize()`](https://json.nlohmann.me/api/basic_json_view/materialize/index.md) preserves the document order of object members -- including members [`set`](https://json.nlohmann.me/api/basic_json_document/set/index.md) added -- instead of sorting them like [`json_editable_document`](https://json.nlohmann.me/api/json_editable_document/index.md) does.
This type is an **editable** [`basic_json_document`](https://json.nlohmann.me/api/basic_json_document/index.md) of the [`ordered_json`](https://json.nlohmann.me/api/ordered_json/index.md) specialization: [`set`](https://json.nlohmann.me/api/basic_json_document/set/index.md) and [`push_back`](https://json.nlohmann.me/api/basic_json_document/push_back/index.md) change values after parsing, as for [`json_editable_document`](https://json.nlohmann.me/api/json_editable_document/index.md), and [`materialize()`](https://json.nlohmann.me/api/basic_json_view/materialize/index.md) preserves the document order of object members — including members [`set`](https://json.nlohmann.me/api/basic_json_document/set/index.md) added — instead of sorting them like [`json_editable_document`](https://json.nlohmann.me/api/json_editable_document/index.md) does.
## Examples
@@ -40,11 +40,12 @@ Output:
## See also
- [ordered_json_editable_view](https://json.nlohmann.me/api/ordered_json_editable_view/index.md) - a view of a value of an `ordered_json_editable_document`
- [ordered_json_document](https://json.nlohmann.me/api/ordered_json_document/index.md) - the read-only document this type adds edits to
- [json_editable_document](https://json.nlohmann.me/api/json_editable_document/index.md) - the corresponding editable document for the default `json` specialization
- [Object Order](https://json.nlohmann.me/features/object_order/index.md)
- [`ordered_json_editable_view`](https://json.nlohmann.me/api/ordered_json_editable_view/index.md) - a view of a value of an `ordered_json_editable_document`
- [`ordered_json_document`](https://json.nlohmann.me/api/ordered_json_document/index.md) - the read-only document this type adds edits to
- [`json_editable_document`](https://json.nlohmann.me/api/json_editable_document/index.md) - the corresponding editable document for the default `json` specialization
- [Object Order](https://json.nlohmann.me/features/object_order/index.md) - preserving the insertion order of object keys
- [Edits](https://json.nlohmann.me/api/basic_json_document/#edits) - what an edit guarantees
- [Zero-copy JSON views](https://json.nlohmann.me/features/json_view/#editing-a-document) - editing a document in place and writing it back
## Version history