json-columnar-compression-csharp 1.0.1

dotnet add package json-columnar-compression-csharp --version 1.0.1
                    
NuGet\Install-Package json-columnar-compression-csharp -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="json-columnar-compression-csharp" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="json-columnar-compression-csharp" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="json-columnar-compression-csharp" />
                    
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 json-columnar-compression-csharp --version 1.0.1
                    
#r "nuget: json-columnar-compression-csharp, 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.
#:package json-columnar-compression-csharp@1.0.1
                    
#: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=json-columnar-compression-csharp&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=json-columnar-compression-csharp&version=1.0.1
                    
Install as a Cake Tool

Json to Columnar Compression

  • Efficiently converts JSON to columnar format and back, enabling faster transmission and reduced storage.
  • This approach is especially beneficial when working with large datasets .
  • You can provide JSON in any structure or format.

Usage



// Not the corrent format in c# but you get the idea
var jsonArray = [
  {
    "id": 1,
    "name": "Alice",
    "age": 28,
    "city": "New York",
    "children": [
      { "id": 11, "name": "Anna", "age": 5 },
      { "id": 12, "name": "Alex", "age": 7 }
    ]
  },
  {
    "id": 2,
    "name": "Bob",
    "age": 34,
    "city": "Los Angeles",
    "children": [{ "id": 21, "name": "Ben", "age": 8 }]
  },
  { "id": 3, "name": "Charlie", "age": 25, "city": "Chicago", "children": null }
]



var compressed = JsonColumnarCompression.CompressJsonToColumnar(jsonArray)

// console.log(compressed)
// [
//   ["id", [1, 2, 3]],
//   ["name", ["Alice", "Bob", "Charlie"]],
//   ["age", [28, 34, 25]],
//   ["city", ["New York", "Los Angeles", "Chicago"]],
//   [
//     "children",
//     [
//       [
//         ["id", [11, 12]],
//         ["name", ["Anna", "Alex"]],
//         ["age", [5, 7]]
//       ],
//       [
//         ["id", [21]],
//         ["name", ["Ben"]],
//         ["age", [8]]
//       ],
//       null
//     ]
//   ]
// ]


var decompressed = JsonColumnarCompression.DecompressColumnarToJson(compressed)

// console.log(decompressed)
// [
//   {
//     "id": 1,
//     "name": "Alice",
//     "age": 28,
//     "city": "New York",
//     "children": [
//       { "id": 11, "name": "Anna", "age": 5 },
//       { "id": 12, "name": "Alex", "age": 7 }
//     ]
//   },
//   {
//     "id": 2,
//     "name": "Bob",
//     "age": 34,
//     "city": "Los Angeles",
//     "children": [{ "id": 21, "name": "Ben", "age": 8 }]
//   },
//   { "id": 3, "name": "Charlie", "age": 25, "city": "Chicago", "children": null }
// ]


Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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.
  • net8.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.1 202 5/8/2025
1.0.0 187 5/7/2025