Skip to content

Commit 0c0851d

Browse files
committed
📝 comment how to integrate tsl::ordered_map (#546)
1 parent bab4a15 commit 0c0851d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ The library is currently used in Apple macOS Sierra and iOS 10. I am not sure wh
924924
- The strings stored in the library are UTF-8 encoded. When using the default string type (`std::string`), note that its length/size functions return the number of stored bytes rather than the number of characters or glyphs.
925925
- The code can be compiled without C++ **runtime type identification** features; that is, you can use the `-fno-rtti` compiler flag.
926926
- **Exceptions** are used widely within the library. They can, however, be switched off with either using the compiler flag `-fno-exceptions` or by defining the symbol `JSON_NOEXCEPTION`. In this case, exceptions are replaced by an `abort()` call.
927-
- By default, the library does not preserve the **insertion order of object elements**. This is standards-compliant, as the [JSON standard](https://tools.ietf.org/html/rfc7159.html) defines objects as "an unordered collection of zero or more name/value pairs". If you do want to preserve the insertion order, you can specialize the object type with containers like [`tsl::ordered_map`](https://github.com./Tessil/ordered-map) or [`nlohmann::fifo_map`](https://github.com./nlohmann/fifo_map) (see [this comment](https://github.com./nlohmann/json/issues/485#issuecomment-333652309) on how to integrate).
927+
- By default, the library does not preserve the **insertion order of object elements**. This is standards-compliant, as the [JSON standard](https://tools.ietf.org/html/rfc7159.html) defines objects as "an unordered collection of zero or more name/value pairs". If you do want to preserve the insertion order, you can specialize the object type with containers like [`tsl::ordered_map`](https://github.com./Tessil/ordered-map) ([integration](https://github.com./nlohmann/json/issues/546#issuecomment-304447518)) or [`nlohmann::fifo_map`](https://github.com./nlohmann/fifo_map) ([integration](https://github.com./nlohmann/json/issues/485#issuecomment-333652309)).
928928
929929
930930
## Execute unit tests

0 commit comments

Comments
 (0)