jsonfmt

command module
v0.0.0-...-62f8f26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

README

#jsonfmt Beautify json string data.

Installation

go get -u github.com/voidint/jsonfmt

How to use?

  • JSON data from file
$ jsonfmt --input test.json
{
	"name": "voidint",
	"age": 25
}
  • JSON data from pipeline
$ echo '{"name":"voidint","age":25}' | jsonfmt
{
	"name": "voidint",
	"age": 25
}
  • Output to file
$ jsonfmt --output ~/test2.json
{"name":"voidint","age":25}
// EOF by CTRL+D(Unix/Linux) or CTRL+Z(Win)
  • Output to terminal
$ jsonfmt
{"name":"voidint","age":25}
// EOF by CTRL+D(Unix/Linux) or CTRL+Z(Win)
{
	"name": "voidint",
	"age": 25
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL