Re:Asp.net Core updates in .NET 8 Preview 1
by snarfy on Tuesday February 21, 2023 @04:30PM
(#34887703)
I've had the opposite experience. System.Text.Json adheres extremely close to the RFC and barely handles any edge cases. Newtonsoft will happily serialize invalid json. Not that you want that but if you have a legacy system it's not worth migrating. James Newton-King is a Microsoft employee btw.
Re:Asp.net Core updates in .NET 8 Preview 1
by runevault on Tuesday February 21, 2023 @04:31PM
(#34887715)
Isn't Text.json also faster at this point because it uses all the new span goodness and the like?
Re:Asp.net Core updates in .NET 8 Preview 1
by jcparkyn on Tuesday February 21, 2023 @06:44PM
(#34889415)
I'm pretty sure it's been faster for as long as it's existed.
Re:Asp.net Core updates in .NET 8 Preview 1
by twisteriffic on Tuesday February 21, 2023 @09:01PM
(#34890581)
Turns out it's easy to be fast if you don't have any features.
Re:Asp.net Core updates in .NET 8 Preview 1
by sebazzz on Wednesday February 22, 2023 @12:44AM
(#34892085)
Even better: it has an optional source generator now! So, at compile time, C# can be generated. This can be at two levels: (1) just generate metadata so runtime reflection is not needed, or (2) also generate code that does the serialisation or deserialization itself.
Pretty cool!
It had a bit of a rough start but it seems far more interoperable on weird edge cases than Newtonsoft now, so all the "Newtonsoft-y" things you're doing might evaporate.