JSON模式验证 [英] JSON schema validation

查看:200
本文介绍了JSON模式验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个稳定的库,可以验证JSON针对模式

json-schema.org 提供实现列表。值得注意的是C和C ++失踪。

有一个原因,我不能轻易地找到一个C ++ JSON架构验证?结果
没有任何人希望有一个快速的方法来验证传入的JSON文件?


解决方案

  

有一个稳定的库,可以验证JSON对抗模式?


我发现一对夫妇打在谷歌:

您还可以插入一个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:

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆