Phema.Serialization.Json 3.0.0

C# Serialization wrapper for Microsoft.Extensions.DependencyInjection

Install-Package Phema.Serialization.Json -Version 3.0.0
dotnet add package Phema.Serialization.Json --version 3.0.0
<PackageReference Include="Phema.Serialization.Json" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Phema.Serialization.Json --version 3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Phema.Serialization

Build Status

C# Json, xml, protobuf and messagepack wrappers for Microsoft.Extensions.DependencyInjection

Packages

  • Nuget Phema.Serialization
  • Nuget Phema.Serialization.Json - Still not ready for now
  • Nuget Phema.Serialization.MessagePack
  • Nuget Phema.Serialization.NewtonsoftJson
  • Nuget Phema.Serialization.Protobuf
  • Nuget Phema.Serialization.Xml

Usage


// Json
services.AddJsonSerializer();

// Newtonsoft.Json
services.AddNewtonsoftJsonSerializer();

// MessagePack
services.AddMessagePackSerializer();

// XML
services.AddXmlSerializer();

// Protobuf
services.AddProtobufSerializer();

// Resolve
var serializer = provider.GetRequiredService<ISerializer>();

// Serialize
var serialized = serializer.Serialize(model);

// Deserialize
var deserialized = serializer.Deserialize<Model>(serialized);

Phema.Serialization

Build Status

C# Json, xml, protobuf and messagepack wrappers for Microsoft.Extensions.DependencyInjection

Packages

  • Nuget Phema.Serialization
  • Nuget Phema.Serialization.Json - Still not ready for now
  • Nuget Phema.Serialization.MessagePack
  • Nuget Phema.Serialization.NewtonsoftJson
  • Nuget Phema.Serialization.Protobuf
  • Nuget Phema.Serialization.Xml

Usage


// Json
services.AddJsonSerializer();

// Newtonsoft.Json
services.AddNewtonsoftJsonSerializer();

// MessagePack
services.AddMessagePackSerializer();

// XML
services.AddXmlSerializer();

// Protobuf
services.AddProtobufSerializer();

// Resolve
var serializer = provider.GetRequiredService<ISerializer>();

// Serialize
var serialized = serializer.Serialize(model);

// Deserialize
var deserialized = serializer.Deserialize<Model>(serialized);

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
3.0.0 54 7/24/2019
3.0.0-preview3.0.0 54 3/30/2019