change 'data' to 'objects' in json objects