Inactive Tutor answered 09/06/19
Tutor
New to Wyzant
Just did this yesterday, adding a toJSON() method - use the .str() method. This overloaded method returns a std::string when there's no argument, but the overloaded method accepts a text string that sets the object:
stringstream ss;
ss.str("");