jmsudar.DotNet.Json
1.1.0
See the version list below for details.
dotnet add package jmsudar.DotNet.Json --version 1.1.0
NuGet\Install-Package jmsudar.DotNet.Json -Version 1.1.0
<PackageReference Include="jmsudar.DotNet.Json" Version="1.1.0" />
paket add jmsudar.DotNet.Json --version 1.1.0
#r "nuget: jmsudar.DotNet.Json, 1.1.0"
// Install jmsudar.DotNet.Json as a Cake Addin
#addin nuget:?package=jmsudar.DotNet.Json&version=1.1.0
// Install jmsudar.DotNet.Json as a Cake Tool
#tool nuget:?package=jmsudar.DotNet.Json&version=1.1.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 | Versions 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. |
-
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.