From cb46e8753d747ee157241e480b02ae240ac58466 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 22 Dec 2025 17:30:59 +0100 Subject: Improve json.hpp --- lib/ClockTAI.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/ClockTAI.cpp') diff --git a/lib/ClockTAI.cpp b/lib/ClockTAI.cpp index 12d2106..5eb6f79 100644 --- a/lib/ClockTAI.cpp +++ b/lib/ClockTAI.cpp @@ -726,17 +726,17 @@ const json::map_t ClockTAI::get_all_values() const m_state->offset << " " << m_state->expires_at << " -> " << m_state->expires_in(); #endif - stat["tai_utc_offset"].v = state.offset; + stat["tai_utc_offset"] = state.offset; - stat["expiry"].v = state.expires_in(); // Might be negative when expired or 0 when invalid + stat["expiry"] = state.expires_in(); // Might be negative when expired or 0 when invalid if (state.valid) { - stat["expires_at"].v = state.expires_at; + stat["expires_at"] = state.expires_at; } else { - stat["expires_at"].v = nullopt; + stat["expires_at"] = nullopt; } - stat["url"].v = join_string_with_pipe(m_bulletin_urls); + stat["url"] = join_string_with_pipe(m_bulletin_urls); return stat; } -- cgit v1.2.3