JsonhCli 6.3.0
dotnet tool install --global JsonhCli --version 6.3.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local JsonhCli --version 6.3.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=JsonhCli&version=6.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package JsonhCli --version 6.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
<img src="https://github.com/jsonh-org/Jsonh/blob/main/IconUpscaled.png?raw=true" width=180>
JSON for Humans.
JSON is great. Until you miss that trailing comma... or want to use comments. What about multiline strings? JSONH provides a much more elegant way to write JSON that's designed for humans rather than machines.
Since JSONH is compatible with JSON, any JSONH syntax can be represented with equivalent JSON.
JsonhCli
JsonhCli is a command-line interface for converting JSONH V1 & V2 to JSON using JsonhCs.
Usage
Description:
The JSONH Command Line Interface
Usage:
JsonhCli [options]
Options:
--input-path <input-path> The path of the JSONH file to input
--input <input> The JSONH string to input
--output-path <output-path> The path of the JSON file to output. If null, logs the output
--pretty Whether to indent the outputted JSON
--lang-version <Latest|V1|V2> The major version of the JSONH specification to use [default: Latest]
--max-depth <max-depth> The maximum recursion depth when reading JSONH [default: 64]
--big-numbers Whether to parse numbers outside the range/precision of a double
-?, -h, --help Show help and usage information
--version Show version information
Example
Parse JSONH in example.jsonh and write indented JSON to example.json:
JsonhCli --input-path "example.jsonh" --output-path "example.json" --pretty
Parse JSONH string and output indented JSON:
JsonhCli --input "[hello, world]" --pretty
| Product | Versions 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 is compatible. 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 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.
This package has no dependencies.