Grunt Task for Merging Multiple JSON Files into a js var
Grunt Task for Merging Multiple JSON Files
This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-merge-json --save-dev
null) the replacer argument for
\t) the space argument for
Run this task with the
grunt merge-json command.
Task targets, files and options may be specified according to the Grunt Configuring tasks guide.
Assuming we have the following types of source JSON files:
Assuming we want to generate the following destination JSON file: