Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How does Newtonsoft.Json.JsonConverter handle nullable structs? - C#
C
C#
•
4y ago
•
2 replies
Kiel
How does Newtonsoft.Json.JsonConverter handle nullable structs?
I
'm presently writing a JsonConverter for a third
-party struct
, and in my json models that field can be null
/omitted
. Do I need to explicitly write a
JsonConverter<MyStruct?>
JsonConverter<MyStruct?>
or will the non
-nullable one handle that behavior as well
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Newtonsoft.Json json handling
C
C# / help
2y ago
✅ Newtonsoft.Json JsonSerializationException
C
C# / help
10mo ago
Newtonsoft.Json issue
C
C# / help
17mo ago