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-locale --save-dev
null) the replacer argument for
true) the space argument for
true) add the file name as the parent node in the json file when merging the contents of the source file
rb) file name of the destination file
json) file extension of the resulting locale file
Merge JSON Task
Run this task with the
grunt merge-local 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: