JSON schema validation

前端 未结 5 1630
迷失自我
迷失自我 2021-01-30 14:28

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

5条回答
  •  南笙
    南笙 (楼主)
    2021-01-30 14:55

    You can try UniversalContainer (libuc). http://www.greatpanic.com/code.html. You're looking for the container contract/schema checking class in this library. The schema format is clunky, but should handle everything you care about and provide reasonable reporting on why a particular instance fails to meet the schema.

提交回复
热议问题