# nlohmann::ordered_json_editable_document Defined in header `` ```cpp using ordered_json_editable_document = basic_json_document; ``` This type is an **editable** [`basic_json_document`](basic_json_document/index.md) of the [`ordered_json`](ordered_json.md) specialization: [`set`](basic_json_document/set.md) and [`push_back`](basic_json_document/push_back.md) change values after parsing, as for [`json_editable_document`](json_editable_document.md), and [`materialize()`](basic_json_view/materialize.md) preserves the document order of object members -- including members [`set`](basic_json_document/set.md) added -- instead of sorting them like [`json_editable_document`](json_editable_document.md) does. ## Examples ??? example The example below edits a document with `set`, then shows that `materialize()` keeps the member order of the source text (with the new member at the end) for `ordered_json_editable_document`, where it would sort the members alphabetically for [`json_editable_document`](json_editable_document.md). ```cpp --8<-- "examples/ordered_json_editable_document.cpp" ``` Output: ```json --8<-- "examples/ordered_json_editable_document.output" ``` ## See also - [ordered_json_editable_view](ordered_json_editable_view.md) - a view of a value of an `ordered_json_editable_document` - [ordered_json_document](ordered_json_document.md) - the read-only document this type adds edits to - [json_editable_document](json_editable_document.md) - the corresponding editable document for the default `json` specialization - [Object Order](../features/object_order.md) - [Edits](basic_json_document/index.md#edits) - what an edit guarantees ## Version history Since version 3.13.0.