1 #ifndef GDE_JSON_FORMATTER_HPP
2 #define GDE_JSON_FORMATTER_HPP
7 #include <Poco/JSON/Object.h>
8 #include <Poco/Timestamp.h>
15 static Poco::JSON::Object::Ptr parse(const std::string&);
17 template <typename T> static T extract(Poco::JSON::Object::Ptr, const std::string&);
18 static Poco::Timestamp extract(Poco::JSON::Object::Ptr, const std::string&);
20 template <typename T> static std::vector<T> extractVector(Poco::JSON::Object::Ptr, const std::string&);
22 static std::string stringify(const Poco::JSON::Object&);
24 static std::string format(const std::string txt, int value);
25 static std::string format(const std::string txt, const std::string& value);
26 static std::string format(const std::string txt, bool value);