1111#include " gas_data_parameters.hpp"
1212#include " camp_core.hpp"
1313#include " nanobind/nanobind.h"
14- #include " nanobind_json/nanobind_json.hpp "
14+ #include " nanobind_json/nanobind_json.h "
1515
1616extern " C" void f_gas_data_ctor (void *ptr) noexcept ;
1717extern " C" void f_gas_data_dtor (void *ptr) noexcept ;
@@ -26,7 +26,7 @@ extern "C" void f_gas_data_spec_name_by_index(const void *ptr, const int *i_spec
2626
2727struct GasData {
2828 PMCResource ptr;
29- const nlohmann::json json;
29+ const nlohmann::ordered_json json;
3030
3131 GasData (const CampCore &CampCore) :
3232 ptr (f_gas_data_ctor, f_gas_data_dtor)
@@ -38,11 +38,11 @@ struct GasData {
3838 ptr (f_gas_data_ctor, f_gas_data_dtor),
3939 json (tpl)
4040 {
41- auto json_array = nlohmann::json ::array ();
41+ auto json_array = nlohmann::ordered_json ::array ();
4242 for (const auto item : tpl)
43- json_array.push_back (nlohmann::json ::object ({{
43+ json_array.push_back (nlohmann::ordered_json ::object ({{
4444 nanobind::cast<std::string>(item),
45- nlohmann::json ::array ()
45+ nlohmann::ordered_json ::array ()
4646 }}));
4747
4848 JSONResourceGuard<InputJSONResource> guard (json_array);
0 commit comments