System.Text.Json support
System.Text.Json (#678)
Build is broken, I'll have a look
@rasmus I'ver fixed the tests, can you take a look?
System.Text.Json has two basic limitations compared to Netwonsoft.Json:
- System.Text.Json treats empty JSON as invalid and throws JsonException; Newtonsoft.Json deserializes it to null
- Newtonsoft.Json can deserialize enum from both int value and name; System.Text.Json handles int value only
As a result, tests of System.Text.Json do not cover all the aspects covered by Newtonsoft.Json. I don't however think that those two features of Newtonsot.Json are used anywhere by EventFlow.
This is great @Yaevh there's still some evaluation if one of the JSON support should be moved to a separate NuGet package (maybe Newtonsoft), but getting this in will make it a whole log easier.
Regardless of the outcome of #876, could you please merge this PR? We can always extract the code to a different project afterwards, and I'm avaliable to do this if needed :)
BTW, I believe there are no breaking changes in this PR, so maybe we could add System.Text.Json support to V0 already?
I'll have a look
Regardless if this is added or not, adding the SystemTextJsonSerializer class to your own project is still possible as this operates on public interfaces.
Hello there!
We hope this message finds you well. We wanted to let you know that we have noticed that there has been no activity on this pull request for the past 90 days, which makes it a stale pull request.
As a result, we will be closing this pull request within the next seven days. If you still think this pull request is necessary or relevant, please feel free to update it or leave a comment within the next seven days.
Thank you for your contributions and understanding.
Best regards, EventFlow
Hello there! I'm a bot and I wanted to let you know that your pull request has been closed due to inactivity after being marked as stale for seven days. If you believe this was done in error, or if you still plan to work on this pull request, please don't hesitate to reopen it and let us know. We're always happy to review and merge high-quality contributions. Thank you for your interest in our project! Best regards, EventFlow