Chubrik.Json 1.0.1

Suggested Alternatives

System.Text.Json

Additional Details

Use the System.Text.Json package version 8.0+ instead. It fully matches the functionality of the current package.

There is a newer version of this package available.
See the version list below for details.
dotnet add package Chubrik.Json --version 1.0.1
NuGet\Install-Package Chubrik.Json -Version 1.0.1
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="Chubrik.Json" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Chubrik.Json --version 1.0.1
#r "nuget: Chubrik.Json, 1.0.1"
#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 Chubrik.Json as a Cake Addin
#addin nuget:?package=Chubrik.Json&version=1.0.1

// Install Chubrik.Json as a Cake Tool
#tool nuget:?package=Chubrik.Json&version=1.0.1

Chubrik.Json project Chubrik.Json

NuGet package MIT license NuGet downloads

Tiny .NET library based on System.Text.Json and provides snake_case & kebab-case property name serialization policies. Designed for maximum performance. <br><br>

Install

PM> Install-Package Chubrik.Json

Usage

using Chubrik.Json;
using System.Text.Json;

var myObj = new { FirstName = "John", LastName = "Smith" };
var options = new JsonSerializerOptions { PropertyNamingPolicy = JsonNamingPolicies.SnakeLowerCase };
var json = JsonSerializer.Serialize(value: myObj, options: options);

Console.WriteLine(json); // {"first_name":"John","last_name":"Smith"}

<br>

Examples

The following table shows the serialization rules for different JSON naming policies: | Original name | SnakeLowerCase | SnakeUpperCase | KebabLowerCase | KebabUpperCase | | --------------- | ---------------- | ---------------- | ---------------- | ---------------- | | Prop | prop | PROP | prop | PROP | | UPPER | upper | UPPER | upper | UPPER | | lower | lower | LOWER | lower | LOWER | | PascalProp | pascal_prop | PASCAL_PROP | pascal-prop | PASCAL-PROP | | camelProp | camel_prop | CAMEL_PROP | camel-prop | CAMEL-PROP | | Snake_Prop | snake_prop | SNAKE_PROP | snake-prop | SNAKE-PROP | | SNAKE_UPPER | snake_upper | SNAKE_UPPER | snake-upper | SNAKE-UPPER | | snake_lower | snake_lower | SNAKE_LOWER | snake-lower | SNAKE-LOWER | | Snake__Long | snake__long | SNAKE__LONG | snake--long | SNAKE--LONG | | SEMIUpper | semi_upper | SEMI_UPPER | semi-upper | SEMI-UPPER | | _Underlined_ | _underlined_ | _UNDERLINED_ | -underlined- | -UNDERLINED- | | __MoreLines__ | __more_lines__ | __MORE_LINES__ | --more-lines-- | --MORE-LINES-- | | Version1 | version1 | VERSION1 | version1 | VERSION1 | | Version1_0 | version1_0 | VERSION1_0 | version1-0 | VERSION1-0 | | Version1__1 | version1__1 | VERSION1__1 | version1--1 | VERSION1--1 | | Version_1_2 | version_1_2 | VERSION_1_2 | version-1-2 | VERSION-1-2 | | Version__1_3 | version__1_3 | VERSION__1_3 | version--1-3 | VERSION--1-3 | | Version2Alpha | version2_alpha | VERSION2_ALPHA | version2-alpha | VERSION2-ALPHA | | Version3beta | version3beta | VERSION3BETA | version3beta | VERSION3BETA | | Version4_Gamma | version4_gamma | VERSION4_GAMMA | version4-gamma | VERSION4-GAMMA | | Version5_delta | version5_delta | VERSION5_DELTA | version5-delta | VERSION5-DELTA | | Version6__Zeta | version6__zeta | VERSION6__ZETA | version6--zeta | VERSION6--ZETA | | Version7__eta | version7__eta | VERSION7__ETA | version7--eta | VERSION7--ETA | | Hex1_0xa1b23c | hex1_0xa1b23c | HEX1_0XA1B23C | hex1-0xa1b23c | HEX1-0XA1B23C | | Hex2_0xA1B23C | hex2_0x_a1_b23_c | HEX2_0X_A1_B23_C | hex2-0x-a1-b23-c | HEX2-0X-A1-B23-C | | ΞένοΌνομα | ξένο_όνομα | ΞΈΝΟ_ΌΝΟΜΑ | ξένο-όνομα | ΞΈΝΟ-ΌΝΟΜΑ | <br>

<a name="license"></a>License

The Chubrik.Json is licensed under the MIT license. <br><br>

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  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 is compatible.  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 netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  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)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6.2

  • .NETStandard 2.0

  • net5.0

    • No dependencies.
  • net6.0

    • No dependencies.
  • net7.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.0.5 565 4/7/2023
1.0.4 188 3/26/2023
1.0.3 185 3/20/2023
1.0.2 195 3/19/2023
1.0.1 209 3/16/2023
1.0.0 338 12/21/2022