FracturedJson 1.2.0

A library for formatting JSON in a user-readable but compact way.

Install-Package FracturedJson -Version 1.2.0
dotnet add package FracturedJson --version 1.2.0
<PackageReference Include="FracturedJson" Version="1.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FracturedJson --version 1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FracturedJson, 1.2.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install FracturedJson as a Cake Addin
#addin nuget:?package=FracturedJson&version=1.2.0

// Install FracturedJson as a Cake Tool
#tool nuget:?package=FracturedJson&version=1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

FracturedJson

FracturedJson is utility that formats JSON data in a user-readable but fairly compact way. Arrays and objects are written on single lines if they're short enough and not too complex; otherwise their contents are presented indented, beginning on lines of their own.

It is available as a browser form, a commandline app, a .NET Core 3.1 library, and as a Javascript package.

Here's a brief, highly contrived example of the output:

{
    "SimpleItem": 77,
    "ShortArray": ["blue", "blue", "orange", "gray"],
    "LongArray": [
        2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73,
        79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157,
        163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241,
        251, 257, 263, 269, 271, 277, 281, 283, 293
    ],
    "ComplexObject": {
        "Subthing1": {"X": 55, "Y": 19, "Z": -4},
        "Subthing2": { "Q": null, "W": [-2, -1, 0, 1] },
        "Distraction": [[], null, null]
    }
}

More Information

Please see the project wiki for more information on what you can do and how to use the tools.

FracturedJson

FracturedJson is utility that formats JSON data in a user-readable but fairly compact way. Arrays and objects are written on single lines if they're short enough and not too complex; otherwise their contents are presented indented, beginning on lines of their own.

It is available as a browser form, a commandline app, a .NET Core 3.1 library, and as a Javascript package.

Here's a brief, highly contrived example of the output:

{
    "SimpleItem": 77,
    "ShortArray": ["blue", "blue", "orange", "gray"],
    "LongArray": [
        2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73,
        79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157,
        163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241,
        251, 257, 263, 269, 271, 277, 281, 283, 293
    ],
    "ComplexObject": {
        "Subthing1": {"X": 55, "Y": 19, "Z": -4},
        "Subthing2": { "Q": null, "W": [-2, -1, 0, 1] },
        "Distraction": [[], null, null]
    }
}

More Information

Please see the project wiki for more information on what you can do and how to use the tools.

  • .NETCoreApp 3.1

    • 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 History

Version Downloads Last updated
1.2.0 131 3/21/2021
1.1.0 73 2/2/2021
1.0.3 288 11/6/2020
1.0.2 282 10/31/2020
1.0.1 141 10/19/2020
1.0.0 149 10/18/2020