0.0.7 • Published 7 years ago
json-checker v0.0.7
json-checker
This library validates JSON instances against both JSON schema and some expected values.
Installation
npm install json-checker
Usage
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 });
0.0.7
7 years ago