0

This seems like a duplicate but my searches weren't returning any applicable results.

Is there a way to tell a specific api controller in asp.net core to remove any null entries in the object being returned as json?

ScottFoster1000
  • 577
  • 1
  • 10
  • 25
  • Is this what you are looking for? https://stackoverflow.com/questions/6507889/how-to-ignore-a-property-in-class-if-null-using-json-net – Dennis VW Aug 10 '19 at 17:20
  • [This](https://stackoverflow.com/questions/52605946/change-the-json-serialization-settings-of-a-single-asp-net-core-controller/52623772#52623772) should give you all the information you need to achieve this. – Kirk Larkin Aug 10 '19 at 17:40

0 Answers0