| 36 | |
| 37 | template <class Handle, class T> |
| 38 | void serialize(Handle & h, T const & x, char const * name) |
| 39 | { |
| 40 | h.dispatch( |
| 41 | [&](nlohmann_json_encoder<nlohmann::json> & e) { output_at(e, x, name); }, |
| 42 | [&](nlohmann_json_encoder<nlohmann::ordered_json> & e) { output_at(e, x, name); } |
| 43 | ); |
| 44 | } |
| 45 | |
| 46 | } |
| 47 |