class Cfg {
private:
DynamicJsonBuffer buff;
JsonObject cfg;
public:
JsonObject& get() {
return cfg;
}
void set(char json[]){
cfg = buff.parseObject(json);
}
};
int main()
{
Cfg jconfig;
char j[] = "{\"aa\": \"bbb\"}";
jconfig.set(j);
std::cout << jconfig.get() << std::endl;
return 0;
}