Msgpack-Cli
Json.NET
Msgpack-Cli | Json.NET | |
---|---|---|
1 | 57 | |
831 | 10,768 | |
0.4% | - | |
2.1 | 4.1 | |
3 months ago | 2 months ago | |
C# | C# | |
Apache License 2.0 | 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.
Msgpack-Cli
-
Feedback request: a super-lightweight library for transferring data between applications
In comparison, msgpack/flatbuffers are much more complex and have their own build dependency. For example, this is what you'll need for msgpack - https://github.com/msgpack/msgpack-cli/tree/master/src/MsgPack
Json.NET
-
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?)
- How do you normally store large raw json string into a variable in your code in C#?
What are some alternatives?
Protobuf.NET - Protocol Buffers library for idiomatic .NET
Utf8Json - Definitely Fastest and Zero Allocation JSON Serializer for C#(NET, .NET Core, Unity, Xamarin).
MessagePack for C# (.NET, .NET Core, Unity, Xamarin) - Extremely Fast MessagePack Serializer for C#(.NET, .NET Core, Unity, Xamarin). / msgpack.org[C#]
ProtoBuf - C# code generator for reading and writing the protocol buffers format
Bond - Bond is a cross-platform framework for working with schematized data. It supports cross-language de/serialization and powerful generic mechanisms for efficiently manipulating data. Bond is broadly used at Microsoft in high scale services.
LitJSON - JSON library for the .Net framework
Protobuf - Protocol Buffers - Google's data interchange format
Jil - Fast .NET JSON (De)Serializer, Built On Sigil
Wire - Binary serializer for POCO objects
json5 - JSON5 — JSON for Humans