jmsudar.DotNet.Json 1.2.0

dotnet add package jmsudar.DotNet.Json --version 1.2.0
NuGet\Install-Package jmsudar.DotNet.Json -Version 1.2.0
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="jmsudar.DotNet.Json" Version="1.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add jmsudar.DotNet.Json --version 1.2.0
#r "nuget: jmsudar.DotNet.Json, 1.2.0"
#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 jmsudar.DotNet.Json as a Cake Addin
#addin nuget:?package=jmsudar.DotNet.Json&version=1.2.0

// Install jmsudar.DotNet.Json as a Cake Tool
#tool nuget:?package=jmsudar.DotNet.Json&version=1.2.0

jmsudar.DotNet.Json

jmsudar.DotNet.Json is a .NET library providing efficient and easy-to-use JSON serialization and deserialization methods with no external third-party dependencies.

Features

  • Fast and lightweight JSON serialization and deserialization.
  • Support for serializing to and deserializing from both strings and UTF-8 byte arrays.
  • Customizable serialization options, including pretty printing and excluding null fields.
  • Case-insensitive deserialization and support for trailing commas.

Getting Started

Installation

To install the jmsudar.DotNet.Json library, use the following NuGet command:

dotnet add package jmsudar.DotNet.Json

Alternately, find the file through the NuGet explorer in Visual Studio or similar.

Usage

Here's a quick example to get you started:

using System;
using jmsudar.DotNet.Json;

public class Program
{
    public class ExampleObject
    {
        public string Name { get; set; }
        public int Age { get; set; }
    }
        
    public static void Main()
    {
        var myObject = new { Name = "John Doe", Age = 30 };
        string jsonString = JsonMethods.Serialize(myObject, prettify: true);
        Console.WriteLine(jsonString);

        var deserializedObject = JsonMethods.Deserialize<ExampleObject>(jsonString);
        Console.WriteLine($"Name: {deserializedObject.Name}, Age: {deserializedObject.Age}");
    }    
}

Contributing

Any contributions you make are greatly appreciated. Please read our CONTRIBUTING.md for details on code of conduct and the process for submitting PRs and feature requests.

License

Distributed under the GPL-3.0 License. See LICENSE for more information.

Contact

JM Sudar - code.jmsudar@gmail.com

Project Link - https://github.com/jmsudar/DotNet-JSON

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.0 484 11/21/2023
1.1.0 348 11/20/2023
1.0.0 506 11/20/2023