@ngdoc overview
@name notes
@description
Functions related to notes

{@link https://familysearch.org/developers/docs/api/resources#notes FamilySearch API Docs}
function getRoot(response) {
  var obj = response.getData();
  if (obj) {
    if (obj.persons) {
      return obj.persons;
    }
    else if (obj.childAndParentsRelationships) {
      return obj.childAndParentsRelationships;
    }
    else if (obj.relationships) {
      return obj.relationships;
    }
  }
  return {};
}