added json data updating method to grunt.