Json.NET
Utf8Json
Json.NET | Utf8Json | |
---|---|---|
58 | 5 | |
11,112 | 2,248 | |
0.5% | - | |
6.0 | 0.0 | |
7 days ago | about 3 years ago | |
C# | C# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Json.NET
- JSON#
-
Essential .NET Libraries Every Developer Should Know
Dealing with JSON in .NET? Newtonsoft.Json (aka Json.NET) has got you covered.
-
Why, after 6 years, I'm over GraphQL
In my opinion, the single biggest issue with Newtonsoft.Json is https://github.com/JamesNK/Newtonsoft.Json/issues/862.
Sure, you can disable it, but the fact that it is opt-out to begin with - i.e. that by default the parser will try to creatively interpret any string it sees in JSON input and convert in a locale-specific manner that also quietly loses data - is, frankly, insane through and through. I've personally run into this issue many times in existing code - it usually happens when people first start using the library and just never run into any inputs that would trigger this behavior while testing. Then once that code is shipped, someone somewhere just happens to have the data that triggers it.
And if you look at the comments to that issue, there are numerous mentions from other GitHub repos due to bugs it caused for them, including some Microsoft projects.
The cherry on that cake was author's response indicating that he doesn't even understand why this design is problematic in the first place: "I like what it does, I have no plans to change it, and I would do it again if given the chance." I wouldn't trust any parser written with this kind of attitude.
-
20 Top C# Frameworks and Libraries on GitHub for Building Powerful Applications
9. Newtonsoft.Json
-
GitHub Actions e a Magia dos Triggers: Automatizando Tarefas com C#
Estamos usando o conversor do Newtonsoft
- stopDoingJson
-
Should you use Newtonsoft.Json or System.Text.Json in 2023?
This bug and many others related to time: https://github.com/JamesNK/Newtonsoft.Json/issues/862 And they will never get fixes, because the project is kind of dead. Edit: and actually, the creator claim to have made it like this on purpose, so I don't trust it anymore.
-
Removing default values while serializing using Newtonsoft.Json
There's a related discussion on the GitHub repo:
-
React developer to NET
Nuget is where you'll get 3rd party libraries (such as Newtonsoft.Json for JSON processing)
- what library do i need to include for this json deserializer? (or how do i find what libs i need to include in general?)
Utf8Json
-
Runtime code generation and execution in Go
This looks like a fun project but for serious work, if you need runtime codegen, you should use .NET which has been successfully using reflection and IL emit for more than a decade:
- Regex https://github.com/dotnet/runtime/blob/main/src/libraries/Sy...
- Json https://github.com/neuecc/Utf8Json/tree/master?tab=readme-ov... (this project is archived but nonetheless impressive and continues to show good numbers despite obsoletion)
- LINQ to DB query compilation https://github.com/dotnet/efcore/blob/main/src/EFCore/Query/...
-
Utf8Json VS Utf8JsonAsyncStreamReader - a user suggested alternative
2 projects | 10 May 2023
-
Branchless Exercise
While I posted a solution that would do this, I'd call this premature optimization. The only time I'd even consider doing this is in a hot path. Here's a good reason to focus on branchless programming: https://github.com/neuecc/Utf8Json.
-
Tried system.text.json instead of Newtonsoft.json for a personal project, resulted in a 10x throughput in improvement
Now try Utf8Json.
-
Runtime communication with C# applicaiton
If my game state was smaller I would go for https://github.com/neuecc/Utf8Json and serde_json combination. Would save me some time with rmp_serde customization.
What are some alternatives?
Protobuf.NET - Protocol Buffers library for idiomatic .NET
LitJSON - JSON library for the .Net framework
MessagePack for C# (.NET, .NET Core, Unity, Xamarin) - Extremely Fast MessagePack Serializer for C#(.NET, .NET Core, Unity, Xamarin). / msgpack.org[C#]
Jil - Fast .NET JSON (De)Serializer, Built On Sigil