是否有可以根据 schema 验证 JSON 的稳定库? ?
json-schema.org提供list of implementations .值得注意的是,缺少 C 和 C++。
我找不到 C++ JSON 模式验证器有什么原因吗?
没有其他人想要一种快速验证传入 JSON 文件的方法吗?
最佳答案
Is there a stable library that can validate JSON against a schema?
我在 google 上找到了几个点击:
您还可以将 Python 或 Javascript 解释器插入到您的应用中,然后简单地运行您已经找到的那些验证器实现的 native 版本。
Is there a reason I can't easily find a C++ JSON schema validator?
我相信 JSON 起源于一种网络技术,而 C/C++ 在网络应用实现中已经失宠。
https://stackoverflow.com/questions/4676171/