Dahomey.Json VS JsonSubTypes

Compare Dahomey.Json vs JsonSubTypes and see what are their differences.

Dahomey.Json

The main purpose of this library is to bring missing features to the official .Net namespace System.Text.Json (by dahomey-technologies)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
Dahomey.Json JsonSubTypes
1 4
155 391
0.6% -
0.0 3.8
over 1 year ago about 1 month ago
C# C#
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

Dahomey.Json

Posts with mentions or reviews of Dahomey.Json. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-04-06.
  • System.Text.Json Rant
    3 projects | /r/csharp | 6 Apr 2021
    I'd add that there are some libs that enables features of Newtonsoft.Json for STJ. E.g. this one is pretty exhaustive.

JsonSubTypes

Posts with mentions or reviews of JsonSubTypes. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-09-04.
  • .Net 6 - Rest Api is deserializing property of "object" type to JsonElement type (System.Text.Json)
    1 project | /r/dotnet | 17 Jul 2022
  • An API receives different message types
    1 project | /r/csharp | 8 Sep 2021
    If messages are arriving as Json you can use JsonSubTypes to deserialize to different DTOs based on the UUIDs (https://github.com/manuc66/JsonSubTypes) and then use the visitor pattern to dispatch the DTOs to the correct method.
  • What is your preferred way of creating application specific files for a local application?
    3 projects | /r/csharp | 4 Sep 2021
    Personally I've had good success with JsonSubTypes for deserializing discriminated unions from JSON. It'll serialize stuff into the right type, and then you just need a switch statement to typecast it afterwards.
  • How to create a data-driven software product that indicates pre-coded functionality?
    1 project | /r/csharp | 9 Jun 2021
    There is a small use case that I consider valid for this. It would be for determining a set of pre-defined behaviors to make available to definitions of entities in a game. And the json data would not be coming from external sources, it would be tightly controlled by me as the developer. The response you made to the other comment on my post shared a link that said the practice shouldn't be done with untrusted data, and there would be no untrusted data since there'd be no external data. The article also mentions to restrict the types that can be deserialized, and that is definitely possible. The architecture pattern for this is ECS (Entity Component System) and the data-drive portion might have been a mis-naming of my post, it's more of a lot of the design of entities and components is stored in data files, and there are a few cases where I will want to associate certain functionality in the code with these data entity definitions. No operating system level functionality would be exposed. I've even been referred to a library available via nuget that will allow for what I'm attempting to do: https://github.com/manuc66/JsonSubTypes

What are some alternatives?

When comparing Dahomey.Json and JsonSubTypes you can also consider the following projects:

Json.NET - Json.NET is a popular high-performance JSON framework for .NET

H.Pipes - A simple, easy to use, strongly-typed, async wrapper around .NET named pipes.

MessagePack for C# (.NET, .NET Core, Unity, Xamarin) - Extremely Fast MessagePack Serializer for C#(.NET, .NET Core, Unity, Xamarin). / msgpack.org[C#]

.NET Runtime - .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.

JsonKnownTypes - Simple way to serialize and deserialize polymorphic types for Json.NET

aspnetskeleton2 - A foundation for building robust web applications on ASP.NET Core.

Utf8Json - Definitely Fastest and Zero Allocation JSON Serializer for C#(NET, .NET Core, Unity, Xamarin).

Wire - Binary serializer for POCO objects

Protobuf - Protocol Buffers - Google's data interchange format

Bois - Salar.Bois is a compact, fast and powerful binary serializer for .NET Framework. With Bois you can serialize your existing objects with almost no change.

Ceras - Universal binary serializer for a wide variety of scenarios https://discord.gg/FGaCX4c