#pragma once ///@file logging-json.hh /// ///@brief Logging functions for json specifically, split due to the cost of ///including nlohmann. #include "logging.hh" #include namespace nix { std::optional parseJSONMessage(const std::string & msg); bool handleJSONLogMessage(nlohmann::json & json, const Activity & act, std::map & activities, bool trusted); bool handleJSONLogMessage(const std::string & msg, const Activity & act, std::map & activities, bool trusted); };