ObjectDumper.NET alternatives and similar packages
Based on the "Serialization" category.
Alternatively, view ObjectDumper alternatives based on common mentions on social networks and blogs.
-
Protocol Buffers
Protocol Buffers - Google's data interchange format -
Json.NET
Json.NET is a popular high-performance JSON framework for .NET -
Protobuf.NET
Protocol Buffers library for idiomatic .NET -
MessagePack for C# (.NET, .NET Core, Unity, Xamarin)
Extremely Fast MessagePack Serializer for C#(.NET, .NET Core, Unity, Xamarin). / msgpack.org[C#] -
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. -
ZeroFormatter
Infinitely Fast Deserializer for .NET, .NET Core and Unity. -
Utf8Json
Definitely Fastest and Zero Allocation JSON Serializer for C#(NET, .NET Core, Unity, Xamarin). -
Magicodes.IE
Import and export general library, support Dto import and export, template export, fancy export and dynamic export, support Excel, Csv, Word, Pdf and Html. -
ServiceStack.Text
.NET's fastest JSON, JSV and CSV Text Serializers -
FileHelpers
The FileHelpers are a free and easy to use .NET library to read/write data from fixed length or delimited records in files, strings or streams -
Msgpack-Cli
MessagePack implementation for Common Language Infrastructure / msgpack.org[C#] -
Ceras
Universal binary serializer for a wide variety of scenarios https://discord.gg/FGaCX4c -
ProtoBuf
C# code generator for reading and writing the protocol buffers format -
JsonSubTypes
Discriminated Json Subtypes Converter implementation for .NET -
Migrant
Fast and flexible serialization framework usable on undecorated classes. -
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. -
FluentSerializer
A fluent take on serializer libraries -
TcpClientIo
TcpClientIo Wrapper of TcpClient what help focus on WHAT you transfer over TCP, not HOW -
Utf8JsonAsyncStreamReader
An Asynchronous forward-only streaming JSON parser and deserializer based on System.Text.Json.Utf8JsonReader.
Updating dependencies is time-consuming.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of ObjectDumper.NET or a related project?
README
ObjectDumper.NET
ObjectDumper is a utility which aims to serialize C# objects to string for debugging and logging purposes.
Download and Install ObjectDumper.NET
This library is available on NuGet: https://www.nuget.org/packages/ObjectDumper.NET/ Use the following command to install ObjectDumper using NuGet package manager console:
PM> Install-Package ObjectDumper.NET
You can use this library in any .NET project which is compatible to PCL (e.g. Xamarin Android, iOS, Windows Phone, Windows Store, Universal Apps, etc.)
The Purpose of ObjectDumper
Serialization, the process of converting a complex object to a machine-readable or over-the-wire transmittable string, is a technique often used in software engineering. A well-known serializer is Newtonsoft.JSON which serializes .NET objects to the data representation format JSON.
ObjectDumper.NET provides two excellent ways to visualize in-memory .NET objects:
- DumpStyle.Console: serialize objects to human-readable strings, often used to write complex C# objects to log files.
- DumpStyle.CSharp: serialize objects to C# initializer code, which can be used to compile a C# object again.
API Usage
Dumping C# Objects to Console.WriteLine
The following sample program uses DumpStyle.Console to write C# objects to the console output:
static void Main(string[] args)
{
var persons = new List<Person>
{
new Person { Name = "John", Age = 20, },
new Person { Name = "Thomas", Age = 30, },
};
var personsDump = ObjectDumper.Dump(persons);
Console.WriteLine(personsDump);
Console.ReadLine();
}
//CONSOLE OUTPUT:
{ObjectDumperSample.Netfx.Person}
Name: "John"
Age: 20
{ObjectDumperSample.Netfx.Person}
Name: "Thomas"
Age: 30
Dumping C# initializer code from in-memory objects to Console.WriteLine
The following sample program uses DumpStyle.CSharp to write C# initializer code from in-memory to the console output:
static void Main(string[] args)
{
var persons = new List<Person>
{
new Person { Name = "John", Age = 20, },
new Person { Name = "Thomas", Age = 30, },
};
var personsDump = ObjectDumper.Dump(persons, DumpStyle.CSharp);
Console.WriteLine(personsDump);
Console.ReadLine();
}
//CONSOLE OUTPUT:
var listOfPersons = new List<Person>
{
new Person
{
Name = "John",
Age = 20
},
new Person
{
Name = "Thomas",
Age = 30
}
};
Links
C# Escape / Unescape https://codebeautify.org/csharp-escape-unescape
License
This project is Copyright © 2022 Thomas Galliker. Free for non-commercial use. For commercial use please contact the author.
*Note that all licence references and agreements mentioned in the ObjectDumper.NET README section above
are relevant to that project's source code only.