Only run hooks for json files. Ignore node_modules.