WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

jsonh-org/JsonhCli

Repository files navigation

C#

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
  -?, -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

About

JSONH for Humans as a Command Line Interface.

Topics

Resources

License

Stars

Watchers

Forks