json2yaml 0.3.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global json2yaml --version 0.3.1
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local json2yaml --version 0.3.1
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=json2yaml&version=0.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package json2yaml --version 0.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
json2yaml
A simple tool to convert json to yaml.
Reads input either from file or http endpoint. Writes converted output to file.
Usage
Usage: json2yaml [options]
Options:
-i|--input [Conditionally Required]. Path to json input file. I.e. `-i:file.json` (or `-i="file.json"`). If empty value provided (`-i`), converter will search current directory for json file. Use either this or -u|--url.
-u|--url [Conditionally Required]. HTTP endpoint to fetch json from. Use either this or -i|--input.
-o|--output [Conditionally Optional]. Path to output yaml file. I.e. `-o:file.yaml (or -o="file.yaml")`. Optional only with -i option. If omitted or empty value provided ('-o') converter will output to file named like input, but with .yaml extension.
-m|--max-size [Optional]. Specifies size limit for file to be converted. I.e. `-m:10`. If omitted, converter will skip file larger that 20 MB.
-?|-h|--help Show help information
Examples
The simplest use case for local input:
json2yaml -i
This will search current directory for json file. Convert its contents to yaml. And writes output to file named as input file, but with extension .yaml.
For remote input use this:
json2yaml -u:https://localhost:5001/swagger/v1/swagger.json -o:swagger.yaml
Note. For --url option --output is required.
Product | Versions 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 | netcoreapp2.1 is compatible. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 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.
Version | Downloads | Last updated |
---|---|---|
5.0.0 | 4,096 | 12/28/2022 |
4.0.0 | 366 | 12/1/2022 |
3.0.1 | 2,655 | 11/28/2021 |
2.2.0 | 409 | 10/9/2021 |
2.1.0 | 532 | 12/20/2020 |
2.0.0 | 554 | 7/9/2020 |
1.3.0 | 571 | 5/31/2020 |
1.2.7 | 526 | 4/18/2020 |
1.2.6 | 530 | 3/6/2020 |
1.2.5 | 597 | 12/23/2019 |
1.2.4 | 527 | 12/23/2019 |
1.2.3 | 550 | 12/21/2019 |
1.2.2 | 549 | 12/18/2019 |
1.2.1 | 539 | 11/9/2019 |
1.2.0 | 539 | 11/9/2019 |
1.1.0 | 584 | 10/21/2019 |
1.0.5 | 693 | 9/9/2019 |
1.0.4 | 673 | 8/10/2019 |
1.0.3 | 641 | 7/7/2019 |
1.0.2 | 584 | 6/13/2019 |
1.0.1 | 607 | 5/18/2019 |
1.0.0 | 608 | 5/15/2019 |
0.4.0 | 927 | 4/6/2019 |
0.3.2 | 804 | 1/20/2019 |
0.3.1 | 697 | 12/17/2018 |
0.3.0 | 770 | 12/9/2018 |
0.2.0 | 701 | 11/24/2018 |
0.1.2-alpha | 620 | 11/14/2018 |
0.1.1-alpha | 548 | 11/8/2018 |
0.1.0-alpha | 574 | 11/6/2018 |
0.3.1:
* support array in root
0.3.0:
* -u|--url option to read input from http endpoint.
* show tool version
0.2.0:
* -m|--max-size option
0.1.2-alpha:
* Cleanup tool output to console.
0.1.1-alpha:
* Handle gracefully command line parsing errors.