Josef
banner
josef.codes
Josef
@josef.codes
Freelancing software developer. Microsoft MVP. 🇸🇪

Interested in EVs, home automation and solar power.

I blog about tech (mostly dotnet core) over at https://josef.codes
Just created an issue regarding System.Text.Json and required/non-null properties. I would expect the deserialization to behave the same way regardless of if the property is present in the json or present but explicitly set to null.

Thoughts?

https://github.com/dotnet/runtime/issues/88727

#dotnet
Deserialization does not fail when a required property is null · Issue #88727 · dotnet/runtime
Description The JsonSerializer.Deserialize method does not behave the same way when deserializing a required property. If the json does not contain the required property at all -> an JsonException ...
github.com
July 12, 2023 at 10:51 AM
I've built a source generator that generates some types. As a good citizen I also want to generate a JsonSerializerContext so consumers of my library can de/serialize the types correctly.

I've generated the file correctly but it doesn't work (STJ is not doing any source generation).
June 22, 2023 at 5:54 AM
New covers 🤤
#tesla #modely
June 16, 2023 at 8:51 PM
How does this even work? How do I search for custom feeds? Formula 1? Tech? Dotnet? Csharp?
June 16, 2023 at 2:47 PM
Hello world! My first...message (?) will be a link to my latest blog post where I use source generators on my enumeration package.

https://josef.codes/jos-enumeration-now-using-source-generators/

#dotnet #dotnetcore
JOS.Enumeration - Now using source generators
By using source generators, we can speed up the retrieval of enumeration values quite a bit!
josef.codes
June 16, 2023 at 2:37 PM