Support 'relations' instead of 'edges' in json data.