pybind11_json icon indicating copy to clipboard operation
pybind11_json copied to clipboard

support for `nlohmann::ordered_json` in addition to `nlohmann::json`

Open slayoo opened this issue 2 years ago • 2 comments

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 https://github.com/nlohmann/json/issues/2179 https://github.com/nlohmann/json/pull/2258

P.S. Thank you for a great piece of software (we use it in https://github.com/open-atmos/PyPartMC/)

slayoo avatar May 18 '23 10:05 slayoo

@martinRenou @JohanMabille @NoahAmsel @SylvainCorlay ping :) having ability to use ordered_json would greatly help in our use case Thanks!

slayoo avatar Jul 12 '23 17:07 slayoo

Would you like to try a PR? I'm happy to help reviewing 🙂

martinRenou avatar Jul 13 '23 06:07 martinRenou