7#ifndef DUNEDAQ_APPFWK_CMD_NLJS_HPP
8#define DUNEDAQ_APPFWK_CMD_NLJS_HPP
16#include <nlohmann/json.hpp>
20 using data_t = nlohmann::json;
23 j[
"match"] = obj.match;
28 if (j.contains(
"match"))
29 j.at(
"match").get_to(obj.match);
30 if (j.contains(
"data"))
31 j.at(
"data").get_to(obj.data);
35 j[
"modules"] = obj.modules;
39 if (j.contains(
"modules"))
40 j.at(
"modules").get_to(obj.modules);
void to_json(data_t &j, const AddressedCmd &obj)
void from_json(const data_t &j, AddressedCmd &obj)