add sample ignore.json
changed code parsing json to be using try and catch