json-checker
v0.0.7
Published
JSON validation of instance type and values
Readme
json-checker
This library validates JSON instances against both JSON schema and some expected values.
Installation
npm install json-checkerUsage
var checker = require("json-checker.js"), schema, json, result;
// Input parameters: // schema: JSON schema // json; JSON instance to be checked
// Sync version result = checker.check(schema, json); // do something with result
// async version checker.asyncCheck(schema, json, callback(err, result) { // do something with result });
