diff options
Diffstat (limited to 'core/src/participant.cpp')
| -rw-r--r-- | core/src/participant.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/core/src/participant.cpp b/core/src/participant.cpp index 0c32172..6b69754 100644 --- a/core/src/participant.cpp +++ b/core/src/participant.cpp @@ -1,5 +1,7 @@ #include "turns/core/participant.hpp" +#include "turns/core/json_ext.hpp" + #include <glibmm/refptr.h> #include <nlohmann/json.hpp> @@ -50,11 +52,10 @@ namespace turns::core auto participant::serialize() -> nlohmann::json { return nlohmann::json{ - {"active", m_is_active.get_value() }, - {"disposition", m_disposition.get_value() }, - {"name", static_cast<std::string>(m_name.get_value())}, - {"priority", m_priority.get_value() }, + {"active", m_is_active }, + {"disposition", m_disposition}, + {"name", m_name }, + {"priority", m_priority }, }; } - } // namespace turns::core
\ No newline at end of file |
