c++cjsonjsonschema

JSON schema validation


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?


Solution

  • 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.