// // to_json.h // logger // // Created by Sam Jaffe on 4/4/19. // #pragma once #if defined(LOGGING_USE_JSON) #if defined(LOGGING_JSON_SJAFFE) #include "json/json.hpp" namespace logging { typedef json::value json; } #elif defined(LOGGING_JSON_VALUE) #include "json/json_fwd.h" namespace logging { typedef Json::Value json; } #endif namespace logging { namespace detail { template json to_json(T const & obj); } } #else namespace logging { namespace detail { template void to_json(T const &) {} } } #endif