GenericConverter.Abstractions 1.0.5

dotnet add package GenericConverter.Abstractions --version 1.0.5
NuGet\Install-Package GenericConverter.Abstractions -Version 1.0.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GenericConverter.Abstractions" Version="1.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GenericConverter.Abstractions --version 1.0.5
#r "nuget: GenericConverter.Abstractions, 1.0.5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install GenericConverter.Abstractions as a Cake Addin
#addin nuget:?package=GenericConverter.Abstractions&version=1.0.5

// Install GenericConverter.Abstractions as a Cake Tool
#tool nuget:?package=GenericConverter.Abstractions&version=1.0.5

Generic Json Converter for .NET

This library is designed to make it easy to switch between Json.net and System.Text.Json without needing to change any code.

Since the advent of System.Text.Json it has been fairly easy to transition code from using Json.net to using System.Text.Json but the subtle differences in both packages make it a bit more difficult than it should be to switch between the two.

The idea of this small lib is to make it possible to write code once but be able to use either Json.net or System.Text.Json interchangably.

It does this by exposing a common interface then handling the slight differences between the platforms behind the scenes.

This is a .NET STANDARD 2.1 Library

Installation

Firstly install the abstractions (needed for using both Json.net and System.Text.Json)...

NuGet:

Install-Package GenericConverter.Abstractions

dotnet CLI

dotnet add package GenericConverter.Abstractions

Then.. if you are using Json.net install..

NuGet:

Install-Package GenericConverter.JsonNet

dotnet CLI

dotnet add package GenericConverter.JsonNet

If you are using System.Text.Json install..

NuGet:

Install-Package GenericConverter.SystemTextJson

dotnet CLI

dotnet add package GenericConverter.SystemTextJson

Note: Don't install both GenericConverter.JsonNet and GenericConverter.SystemTextJson, it's one or the other depending on which libraby you want to actually use.

Usage

todo:

	
	using GenericConverter;

    // todo: this
    

I make no claims about the speed and efficiency of this library; it's mostly designed for convenience but I certainly welcome any pull requests that make improvements or add features.

Tests

To run tests:

dotnet test

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request 😄

License

The MIT License (MIT) See LICENCE file for Licence (MIT Licence)

© 2021 Captive Reality Ltd. All Rights Reserved. Author: Mark Castle

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on GenericConverter.Abstractions:

Package Downloads
GenericConverter.SystemTextJson

Common interface for Json converters

GenericConverter.JsonNet

Common interface for Json converters

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.5 871 5/12/2022
1.0.4 831 5/12/2022
1.0.1 788 5/12/2022
1.0.0 806 5/12/2022