npm.io
0.0.7 • Published 9 years ago

json-checker

Licence
ISC
Version
0.0.7
Deps
0
Vulns
0
Weekly
0

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 });

Keywords