我有两个RapidJSON文档。一个是我在运行时创建的,另一个是从磁盘读取的。
我想比较一下这两个文档是否相似。比较RapidJSON文档的最佳方法是什么?
我的JSON如下所示
{
"SimpleCompany:Manager":
{
"read":true,
"update":true,
"delete":true,
"insert":true
},
"SimpleCompany:Manager":
{
"read":true,
"update":true,
"delete":true,
"insert":true
},
}发布于 2015-10-19 19:32:03
是的,现在,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;https://stackoverflow.com/questions/24909621
复制相似问题