Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.