| 143 | // Serialize. |
| 144 | void dump(std::string &out) const; |
| 145 | std::string dump() const { |
| 146 | std::string out; |
| 147 | dump(out); |
| 148 | return out; |
| 149 | } |
| 150 | |
| 151 | // Parse. If parse fails, return Json() and assign an error message to err. |
| 152 | static Json parse(const std::string & in, |