We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dd4fac commit 4a8bf8bCopy full SHA for 4a8bf8b
protogen.hh
@@ -829,9 +829,7 @@ struct json<std::string, void>
829
case '\r': (*ctx.os) << "\\r"; break;
830
case '\n': (*ctx.os) << "\\n"; break;
831
case '\t': (*ctx.os) << "\\t"; break;
832
- default:
833
- // TODO: escape control character instead of removing it
834
- if (*it >= 32) (*ctx.os) << *it;
+ default: (*ctx.os) << *it;
835
}
836
837
(*ctx.os) << '"';
tests/tests.cc
@@ -53,6 +53,8 @@ bool RUN_TEST1( int argc, char **argv)
53
number.type = false;
54
person.phones.push_back(number);
55
56
+ book.people.push_back(person);
57
+
58
std::string json1;
59
std::string json2;
60
phonebook::AddressBook temp;
0 commit comments