node package manager


Grunt Plugin to convert HanSON files to JSON.

Hanson Grunt-Plugin

A Grunt plugin to convert HanSON files to JSON.

Installing the plugin in your Grunt environment:

npm install grunt-hanson-plugin --save-dev

Load the plugin in your Gruntfile:


In your project's Gruntfile, add a section named hanson to the data object passed into grunt.initConfig().

  hanson_plugin: {
    your_target: {
        options: {
         keepLineNumbers: false
        files: {
          'converted-file.json': 'input-file.hson',

Type: Boolean Default value: false

If true, the HanSON processor will insert newlines so line numbers in output file and input file match.