Same question as
How to Ignore Null values while serializing OData response
and
.NET Core: Remove null fields from API JSON response
Only difference is how to do it in .NetFramework 4.7.2 with HttpApplication.
Tried the attached solutions but they are for different .Net flavors.