question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for MissingMemberHandling

See original GitHub issue

It would be great if Dahomey.Json could support MissingMemberHandling. This would help us build a robust API that does not let user mistakes slip by unnoticed (for our ASP.NET Core application).

Support for this feature might get added to System.Text.Json, but it is unclear if or when that will happen - see the 5.0 and Future milestone indicators here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
SiggyBarcommented, Jul 14, 2020

This works great now, thanks again!

I think it would make sense to add Support for MissingMemberHandling to the feature list in README.md 😁

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add support for MissingMemberHandling to System.Text. ...
Search code, repositories, users, issues, pull requests... · Provide feedback · Saved searches · Add support for MissingMemberHandling to System.Text.Json #37483.
Read more >
Json.NET MissingMemberHandling setting
I would like Json.NET to throw a JsonSerializationException when the Json string is missing a property that the C# class requires. Throw a ......
Read more >
Handle missing members during deserialization
Set JsonSerializerOptions. UnmappedMemberHandling to either Skip or Disallow. Customize the JsonTypeInfo contract for the relevant type. (For ...
Read more >
Migrate from Newtonsoft.Json to System.Text.Json - .NET
We're investing in adding the features that are most often requested. If your application depends on a missing feature, consider filing an issue ......
Read more >
MissingMemberHandling setting
This sample attempts to deserialize JSON with MissingMemberHandling set to error and a JSON property that doesn't match to a member, causing an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found