🚧 toward an ordered_json type

This commit is contained in:
Niels Lohmann committed 2020-06-19 15:27:05 +02:00
1 parent e7452d8778
commit 4fd0d02b6f
6 files changed
+211

No files matched your search

+13
View File
@@ -60,6 +60,19 @@ uses the standard template types.
@since version 1.0.0
*/
using json = basic_json<>;
template<class Key, class T, class IgnoredLess, class Allocator, class Container>
struct ordered_map;
/*!
@brief ordered JSON class
This type preserves the insertion order of object keys.
@since version 3.9.0
*/
using ordered_json = basic_json<nlohmann::ordered_map>;
} // namespace nlohmann
#endif // INCLUDE_NLOHMANN_JSON_FWD_HPP_