JSON模式验证 [英] JSON schema validation
问题描述
有一个稳定的库,可以验证JSON针对模式?
json-schema.org 提供实现列表。值得注意的是C和C ++失踪。
有一个原因,我不能轻易地找到一个C ++ JSON架构验证?结果
没有任何人希望有一个快速的方法来验证传入的JSON文件?
有一个稳定的库,可以验证JSON对抗模式?
块引用>我发现一对夫妇打在谷歌:
- 从Chromium项目:<一href=\"http://aaronboodman-com-v1.blogspot.com/2010/11/c-version-of-json-schema.html\">http://aaronboodman-com-v1.blogspot.com/2010/11/c-version-of-json-schema.html
- http://avro.apache.org/docs/1.4.1/api/cpp/html/index.html
您还可以插入一个Python或Javascript间preTER到您的应用程序,并简单地运行你已经发现,那些验证器实现的原生版本。
有一个原因,我不能轻易地找到一个C ++ JSON模式验证?
块引用>我相信JSON起源于网络技术,和C / C ++已经失宠,为Web应用程序的实现。
Is there a stable library that can validate JSON against a schema?
json-schema.org provides a list of implementations. Notably C and C++ are missing.
Is there a reason I can't easily find a C++ JSON schema validator?
Doesn't anyone else want a quick way to validate incoming JSON files?解决方案Is there a stable library that can validate JSON against a schema?
I found a couple hits on google:
- From the Chromium project: http://aaronboodman-com-v1.blogspot.com/2010/11/c-version-of-json-schema.html
- http://avro.apache.org/docs/1.4.1/api/cpp/html/index.html
You could also plug a Python or Javascript interpreter into your app, and simply run the native version of those validator implementations that you've already found.
Is there a reason I can't easily find a C++ JSON schema validator?
I believe JSON originated as a web technology, and C/C++ has fallen out of favor for web app implementation.
这篇关于JSON模式验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!