我有两个 RapidJSON 文档。一个是我在运行时创建的,另一个是从磁盘读取的。
我想比较这两个文件是否相似。比较 RapidJSON 文档的最佳方法是什么?
我的 JSON 看起来像这样
{
"SimpleCompany:Manager":
{
"read":true,
"update":true,
"delete":true,
"insert":true
},
"SimpleCompany:Manager":
{
"read":true,
"update":true,
"delete":true,
"insert":true
},
}
是现在,GenericValue
覆盖operator==
与其他值、字符串或基元:
bool operator==(const GenericValue<...>& rhs) const;
bool operator==(const Ch* rhs) const;
bool operator==(const std::basic_string<Ch>& rhs) const;
bool operator==(const T& rhs) const;
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)