Using with statement to open config.json file