Add stub deploy.json and fix for the json.parse error handling.