aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Json.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2023-10-31 23:02:10 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2023-10-31 23:02:10 +0100
commitc2467d222ec08ddc4c6f79ea01773496090f809f (patch)
tree33132f324da5b9bfb7a3d711c85053f80ac4f427 /lib/Json.h
parent6728ddc82936d8d6223a885bf7fbcec9a00c18a6 (diff)
downloaddabmod-c2467d222ec08ddc4c6f79ea01773496090f809f.tar.gz
dabmod-c2467d222ec08ddc4c6f79ea01773496090f809f.tar.bz2
dabmod-c2467d222ec08ddc4c6f79ea01773496090f809f.zip
Add FIC decoder, present ensemble info for monitoring
Diffstat (limited to 'lib/Json.h')
-rw-r--r--lib/Json.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Json.h b/lib/Json.h
index 706394f..65aa668 100644
--- a/lib/Json.h
+++ b/lib/Json.h
@@ -31,7 +31,7 @@
# include "config.h"
#endif
-#include <list>
+#include <vector>
#include <memory>
#include <optional>
#include <stdexcept>
@@ -47,6 +47,7 @@ namespace json {
struct value_t {
std::variant<
std::shared_ptr<std::unordered_map<std::string, value_t>>,
+ std::vector<value_t>,
std::string,
double,
size_t,
@@ -58,4 +59,5 @@ namespace json {
using map_t = std::unordered_map<std::string, value_t>;
std::string map_to_json(const map_t& values);
+ std::string value_to_json(const value_t& value);
}