add the following test to jsontests.cpp
class QuoteTest6 : public Base {
virtual BSONObj bson() const
{
BSONObjBuilder b;
b.append("test", '"');
return b.obj();
}
virtual string json() const {
return "
{ \"test\" : '\"' }
";
}
};
and the output is
JsonTests::FromJsonTests::QuoteTest6 Expected: !expected.woCompare( actual ) @src/mongo/dbtests/jsontests.cpp:439