Correctly setting key names for data returned by getObjectsFromAPICall