Qt 对 XML 的支持非常强大,包括对 XML 模式验证的支持。
Qt 对 JSON 的支持似乎不那么广泛。我找不到任何东西似乎可以确认或否认对Qt 中json-schema或任何其他类型的Json 模式验证的支持。
在 Qt/C++ 中是否有验证 json 的合理方法?
编辑:需要明确的是,这个问题以Json 模式验证为中心,而不仅仅是确认任意文档是否是有效的 Json。
Qt 5.8 still don't seem to have JSON Schema validation... But you can find a bunch of other interesting libraries.
4 C/C++ libraries are listed on JSON Schema website:
其他 JSON Schema Validator 项目可以在 github 或 bitbucket 上找到,其中: