Grunt task to flatten a folder to a JSON file representing its contents