JSONTreeView 1.1.0

dotnet add package JSONTreeView --version 1.1.0
NuGet\Install-Package JSONTreeView -Version 1.1.0
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="JSONTreeView" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add JSONTreeView --version 1.1.0
#r "nuget: JSONTreeView, 1.1.0"
#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 JSONTreeView as a Cake Addin
#addin nuget:?package=JSONTreeView&version=1.1.0

// Install JSONTreeView as a Cake Tool
#tool nuget:?package=JSONTreeView&version=1.1.0

WPF TreeView for JSON Loading/showing

Create a WPF TreeView from valid JSON in a text string.

WPF Example

MyTreeView.ProcessJson(text);

where text is any valid Json in string format. Same as the Linqpad example below.

Linqpad Example

PanelManager.StackWpfElement(((new TreeView()).ProcessJson(text)), "JSON");


Pretty Print JSON

Extension for JsonDocument to output prettified readable json text. Example:

var jsonPretty = myDoc.ToFormattedJsonString();

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .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 Downloads Last updated
1.1.0 2,198 6/26/2020
1.0.0 494 6/25/2020

V1.0 - `ProcessJson(..text...)` creates tree in WPF TreeView
              - TreeView's `Tag' Property contains the `JsonDocument` instance used to create the tree.
       - Extension for JsonDocument of `ToFormattedJsonString` produces pretty print json version.
V1.1 - Proper handling of individual strings/numbers/null/undefined for arrays.