Is there any way to prevent null fields from being returned in OData responses?
As with many rets/reso feeds we get a significant number of null field values (and empty lists/arrays) in API responses. We'd like to know if there is a parameter that we can send to suppress those values and make the response payloads smaller and cleaner?
Eg. this record would be about 1/20th the size with nulls/empties excluded:
{
"@odata.context": "https://api.paragonapi.com/api/v2/OData/bk1/$metadata#Property",
"@odata.id": "https://api.paragonapi.com/api/v2/OData/bk1/Property('642b40d1c4f4da1d3a7fc200fe1be61f')",
"City": "Kahului",
"Roof": [],
"View": [
"Mountain(s)"
],
"Sewer": [],
"Levels": [],
"ViewYN": true,
"Zoning": null,
"Cooling": [],
"Country": "US",
"Fencing": [],
"Heating": [],
"Stories": 0,
"TaxYear": null,
"Basement": [],
"Electric": [],
"Flooring": [],
"GarageYN": null,
"Latitude": 20.817051,
"CarportYN": null,
"CloseDate": null,
"CoolingYN": false,
"Furnished": null,
"HeatingYN": null,
"LeaseTerm": null,
"ListPrice": 475000,
"ListingId": "385101",
"Longitude": -156.454092,
"MlsStatus": "CANCELED",
"OwnerPays": [],
"Utilities": [],
"YearBuilt": null,
"Appliances": [],
"ClosePrice": null,
"CurrentUse": [],
"HighSchool": null,
"Inclusions": null,
"ListingKey": "642b40d1c4f4da1d3a7fc200fe1be61f",
"LivingArea": null,
"Possession": [],
"PostalCode": "96732",
"StreetName": "Nopu",
"Topography": null,
"UnitNumber": "6",
"BK1_LA1_Zip": "96732-2315",
"BK1_LA2_Zip": null,
"BK1_L_DOMLS": 987,
"BK1_SA1_Zip": null,
"BK1_SA2_Zip": null,
"Concessions": null,
"Disclosures": [],
"FireplaceYN": null,
"GrossIncome": null,
"LockBoxType": [],
"LotFeatures": [],
"LotSizeArea": 0.362,
"PetsAllowed": [],
"PhotosCount": 1,
"PossibleUse": [],
"SpaFeatures": [],
"SyndicateTo": [
"Realtor.com"
],
"WaterSource": [],
"BK1_LA1_City": "Kahului",
"BK1_LA2_City": null,
"BK1_LM_Dec_2": null,
"BK1_LM_Dec_4": null,
"BK1_LM_Dec_7": null,
"BK1_LM_Dec_8": null,
"BK1_LM_Dec_9": null,
"BK1_SA1_City": null,
"BK1_SA2_City": null,
"BuildingName": "Pulehunui",
"BusinessName": null,
"BusinessType": [
"Industrial"
],
"DaysOnMarket": 987,
"GarageSpaces": null,
"ListAgentFax": null,
"ListAgentKey": "54704e82b6dd33b7dee7b5ac45975d2a",
"ListAgentURL": null,
"ListPriceLow": 475000,
"ListingTerms": [],
"LotSizeAcres": 0.362,
"LotSizeUnits": "Acres",
"MLSAreaMajor": "Kahului",
"NumberOfLots": null,
...