4

我有两个 RapidJSON 文档。我在运行时创建的一个,另一个是从磁盘读取的。

我想比较这两个文件是否相似。比较 RapidJSON 文档的最佳方法是什么?

我的 JSON 看起来像这样

{
    "SimpleCompany:Manager":
    {
        "read":true,
        "update":true,
        "delete":true,
        "insert":true
    },
    "SimpleCompany:Manager":
    {
        "read":true,
        "update":true,
        "delete":true,
        "insert":true
    },
}
4

1 回答 1

0

是的,现在,用其他值、字符串或原语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;
于 2015-10-19T11:32:03.003 回答