read a whole stream to a string
| 38 | |
| 39 | // read a whole stream to a string |
| 40 | std::string read_all(std::istream& i) { |
| 41 | std::string one; |
| 42 | std::string ret; |
| 43 | while (std::getline(i, one).good()) { |
| 44 | ret += one; |
| 45 | ret += "\n"; |
| 46 | } |
| 47 | ret += one; |
| 48 | return ret; |
| 49 | } |
| 50 | |
| 51 | std::string areArrayEqualUnordered(json lhs, json rhs) { |
| 52 | std::vector<json> objects; |