Adding support for the ordered_json type in addition to currently used json would be beneficial for users intending to preserve order of elements in the JSON structures.
For further discussion, see:
https://github.com/nlohmann/json#order-of-object-keys
nlohmann/json#2179
nlohmann/json#2258
P.S. Thank you for a great piece of software (we use it in https://github.com/open-atmos/PyPartMC/)