go-json-tools

module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: BSD-3-Clause

README

go-json-tools

There are many tools for working with JSON. These ones are ours.

Documentation

Documentation is incomplete.

Tools

jf

Flatten JSON.

jp

Make JSON pretty.

./bin/jp -h
Usage of ./bin/jp:
  -rewrite
    	Rewrite the JSON file in place.

For example:

./bin/jp -rewrite example.json

Or to read from STDIN:

cat example.json | ./bin/jp -
jv

Ensure JSON is valid (where "valid" means it can be parsed)

$> ./bin/jv ~/sfomuseum/go-sfomuseum-media/config/*.json

Directories

Path Synopsis
cmd
jf
jp
jv
jv will ensure that one or more URIs (or STDIN) contain valid JSON.
jv will ensure that one or more URIs (or STDIN) contain valid JSON.

Jump to

Keyboard shortcuts

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