News for hackers. Stuff that matters.
Re:Modern C++ for C Programmers (2018) by bob1029 on Saturday July 24, 2021 @09:07AM (#27940596)
> I wouldn't bet on it, https://devblogs.microsoft.com/dotnet/try-the-new-system-tex...

This would be the 2nd of 2 that I was referring to. The first would be Newtonsoft.Json.

Re:Modern C++ for C Programmers (2018) by pjmlp on Saturday July 24, 2021 @09:14AM (#27940666)
Except this is a new API, not the 2nd one.

You have to modify code using System.Text.Json for the code generator based way, and it doesn't support all the features, enjoy the comments section.

Re:Modern C++ for C Programmers (2018) by bob1029 on Saturday July 24, 2021 @11:12AM (#27941591)
> Except this is a new API, not the 2nd one.

> and it doesn't support all the features

I think there was a misunderstanding.

We do not use System.Text.Json because it doesnt support everything Newtonsoft.Json does. At no point did I intend to make the claim that these were somehow compatible implementations.

Our shop is stuck on Newtonsoft until Microsoft realizes that polymorphic deserialization is actually a really useful thing and not just a pedantic security concern.