Grunt plugin to fetch remote JSON resources and save them locally. Current stable version is 0.0.5, last released in 2015. It uses node-fetch under the hood to make HTTP requests. This plugin is built for Grunt-based build pipelines and allows configuring method, headers, body, and parameters per task. It fetches JSON data from remote APIs and stores the responses as local files. This plugin is now obsolete in favor of modern build tools like Gulp or direct use of node-fetch. No active maintenance, package is deprecated.
npm install grunt-fetch-jsonNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Example Gruntfile that fetches a single JSON file from a remote API and saves it locally.
Replace with direct use of node-fetch or a modern build tool.
Use grunt.loadNpmTasks('grunt-fetch-json') exactly.Use { 'dest.json': 'http://source.url' } instead of { src: '...', dest: '...' }.Ensure endpoints return valid JSON or handle response yourself.
Check final URL or use node-fetch directly for more control.
Add grunt.loadNpmTasks('grunt-fetch-json'); to your Gruntfile.Ensure the URL returns valid JSON and is reachable.
Include full URL with protocol.