Search code examples
marklogicmarklogic-8

Schema validation for JSON


Is there way to do schema validation on JSON documents, just like the xsd schema validation for XML documents in MarkLogic 8?

Thanks


Solution

  • There is no native JSON schema validation in MarkLogic 8, but xdmp.jsonNodeValidate() is available in MarkLogic 9.

    Having said that, there are many JS JSON validation libraries. Therefore, it is not unrealistic to think that you could use a validation library in JavaScript for this task.