jsen

JSON-Schema validator
built for speed

Build Coverage Downloads
var validate = jsen({
  type: 'object',
  properties: {
    username: {
      type: 'string',
      minLength: 4
    }
  }
});

validate({ username: 'john' }); // true
validate({ username: 'jim' });  // false
Run in JS Bin

Validate your JSON objects using JSON Schema

JSEN (JSON Sentinel) validates JSON objects using JSON Schema. Uses dynamic code generation to produce high-performance functions that V8 and other JavaScript engines can optimize. Works both in node and the browser.

Get Started

Learn how to use JSON Schema to validate JSON

Performance

Check out the benchmark for JSEN and other validators

Playground

Try JSEN in your browser. Courtesy of JS Bin

NPM

Install through NPM
npm install jsen

Bower.io

Install through Bower
bower install jsen

Github

Browse the repo or submit an issue