Skip to content

Change json serialization behavior to ignore null #1189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
henrik-me opened this issue May 31, 2019 · 3 comments
Closed

Change json serialization behavior to ignore null #1189

henrik-me opened this issue May 31, 2019 · 3 comments
Assignees
Milestone

Comments

@henrik-me
Copy link
Contributor

Is your feature request related to a problem? Please describe.
For certain older auth libraries there is an issue with null handling in json thus we should move to not adding fields which values is null. Especially important is the handling of foci_id.

Describe the solution you'd like
Ensure the json serializer doesn't write values to the json for which the values are null.

Describe alternatives you've considered
N/A

Additional context
https://stackoverflow.com/questions/6507889/how-to-ignore-a-property-in-class-if-null-using-json-net

@jmprieur
Copy link
Contributor

@MarkZuber : I believe this is fixed?

@MarkZuber
Copy link
Contributor

MarkZuber commented Jun 14, 2019 via email

@jmprieur
Copy link
Contributor

jmprieur commented Jul 2, 2019

this is now fixed and available in MSAL.NET 4.1

@jmprieur jmprieur closed this as completed Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants