grunt-jassi

Validate JSON documents with Jassi.

grunt-jassi

Validate JSON documents with Jassi.

Install this grunt plugin next to your project's Gruntfile.js with this command:

npm install grunt-jassi

Then add this line to the Gruntfile.js file:

grunt.loadNpmTasks('grunt-jassi');

Run this task with the grunt jassi command.

This task is a multi task so any targets, files and options should be specified according to the multi task documentation.

Type: String Default: empty string

Specifies the path to a file containing the JSON schema needed to validate the data against.

In this example, running grunt jassi will validate the src/data.json document against the src/schema.json schema.

// Project configuration. 
grunt.initConfig({
  jassi: {
    options: {
        schema: 'src/schema.json'
    }
    src: 'src/data.json'
  }
});