Nabs.Launchpad.Core.Serialisation 10.0.232

Prefix Reserved
dotnet add package Nabs.Launchpad.Core.Serialisation --version 10.0.232
                    
NuGet\Install-Package Nabs.Launchpad.Core.Serialisation -Version 10.0.232
                    
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="Nabs.Launchpad.Core.Serialisation" Version="10.0.232" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Nabs.Launchpad.Core.Serialisation" Version="10.0.232" />
                    
Directory.Packages.props
<PackageReference Include="Nabs.Launchpad.Core.Serialisation" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Nabs.Launchpad.Core.Serialisation --version 10.0.232
                    
#r "nuget: Nabs.Launchpad.Core.Serialisation, 10.0.232"
                    
#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.
#:package Nabs.Launchpad.Core.Serialisation@10.0.232
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Nabs.Launchpad.Core.Serialisation&version=10.0.232
                    
Install as a Cake Addin
#tool nuget:?package=Nabs.Launchpad.Core.Serialisation&version=10.0.232
                    
Install as a Cake Tool

NuGet

Nabs.Launchpad.Core.Serialisation

Nabs.Launchpad.Core.Serialisation centralizes JSON and CSV serialization defaults so data formatting stays consistent across services.

Installation

dotnet add package Nabs.Launchpad.Core.Serialisation

The Problem

// 1) Each service uses different JsonSerializerOptions
JsonSerializer.Serialize(value, new JsonSerializerOptions { WriteIndented = false });

// 2) CSV parsing defaults vary by component

// 3) Format drift causes hard-to-trace integration issues

Features

  • Global JSON settings via GlobalSettings.JsonSerializerOptions
  • Global CSV settings via GlobalSettings.CsvConfiguration
  • Simple serialization API with DefaultJsonSerializer

Usage

GlobalSettings.RegisterJsonSerializerOptions(new JsonSerializerOptions
{
    PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
    WriteIndented = true
});

var json = DefaultJsonSerializer.Serialize(new { Name = "Launchpad" });

Configuration

Register custom JSON/CSV settings early in startup before first serialization use.

Project Structure

  • GlobalSettings.cs - global serializer and CSV configuration
  • DefaultJsonSerializer.cs - convenience JSON wrappers

License

Copyright (c) Net Advantage Business Solutions.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.