Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

dimesoftware/newtonsoft-json-extensions

Repository files navigation

⚠️ This repo was moved to the utilities repo ⚠️

Logo

Extensions to Newtonsoft.Json

Build status Package

This is a simple utility library that uses the capabilities of Newtonsoft.Json.

Getting Started

  • You must have Visual Studio 2019 Community or higher.
  • The dotnet cli is also highly recommended.

About this project

This is a simple utility library that uses the capabilities of Newtonsoft.Json. Particularly, the Copier class exposes a DeepClone method which allows to do perform deep cloning.

Build and Test

  • Run dotnet restore
  • Run dotnet build
  • Run dotnet test

Installation

Use the package manager NuGet to install Dime.Rules:

  • dotnet cli: dotnet add package Dime.Newtonsoft.Json.Extensions
  • Package manager: Install-Package Dime.Newtonsoft.Json.Extensions

Usage

using Newtonsoft.Json.Extensions;

public bool Copy(Customer originalCustomer)
{
    Customer copiedCustomer = originalCustomer.DeepClone();
    return copiedCustomer == originalCustomer; // returns false
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.

License

About

Extensions to the Newtonsoft.Json namespace.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages