4 #include "../connContext.h"
5 #include <jsoncpp/json/json.h>
13 static constexpr std::array<ContentType::t,2> ContentTypes() {
14 return { {ContentType::application_json, ContentType::application_javascript } }; };
19 static Json::Value& operator >>(Json::Value& jv, std::vector<T>& t){
22 for(
unsigned int i = 0;i < jv.size();i++)
28 static Json::Value& operator<<(Json::Value& jv, std::vector<T>& t){
29 jv = Json::Value(Json::arrayValue);
31 for(
unsigned int i = 0;i < t.size();i++)