Fixing code to handle DailyConnector json responses