Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smourier/zerodepjson
A .NET Json parser in one .cs file, with zero dependencies.
https://github.com/smourier/zerodepjson
dotnet dotnet-core dotnetframework json json-parser netstandard
Last synced: 1 day ago
JSON representation
A .NET Json parser in one .cs file, with zero dependencies.
- Host: GitHub
- URL: https://github.com/smourier/zerodepjson
- Owner: smourier
- License: mit
- Created: 2021-05-02T07:41:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-04T17:41:42.000Z (2 months ago)
- Last Synced: 2024-10-29T11:34:49.511Z (18 days ago)
- Topics: dotnet, dotnet-core, dotnetframework, json, json-parser, netstandard
- Language: C#
- Homepage:
- Size: 257 KB
- Stars: 37
- Watchers: 5
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ZeroDepJson
A .NET JSON serializer/deserializer with zero dependencies.There are already many JSON serializers available on the .NET platform. So why ZeroDepJson?
* It's only one .cs file [ZeroDepJson.cs](https://github.com/smourier/ZeroDepJson/blob/main/ZeroDepJsonCore/ZeroDepJson.cs) so it's super easy to integrate in any .NET project, .NET Framework, .NET core, .NET 5/6/7+, client, server, etc.
* It supports .NET framework 4.0 to .NET 7+ projects.
* Since it's one source file, you can change some parts of the code easily if you want to really customize it.
* As the name implies, it has ZERO dependency on anything except "some .NET with C#" platform.
* It's quite feature-full, more than some JSON parsers available today, it's not "simple" nor "lightweight".Note for .NET 8 and higher, dependencies on `FormatterConverter` and support for `ISerializable` has been removed to comply with .NET 8 warnings https://learn.microsoft.com/en-us/dotnet/fundamentals/syslib-diagnostics/syslib0050.
Just to make it clear, absolute performance is not a goal. Although its performance is, I hope, decent, if you're after the best performing JSON serializer / deserializer ever, then don't use this.