jd

package module
v0.0.0-...-42fe71a Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2016 License: MIT Imports: 10 Imported by: 0

README

JD - Interactive JSON Editor

It's an experimental tool for querying and editing JSON documents. It's basically a playground to show off the path syntax of GJSON.

demo-basic

It's possible to add, delete, and edit any JSON value type.

demo-elements

Usage

# Read from Stdin
echo '{"id":9851,"name":{"first":"Tom","last":"Anderson"},"friends":["Sandy","Duke","Sam"]}' | jd

# Read from cURL
curl -s https://api.github.com/repos/tidwall/tile38/issues/23 | jd

# Read from a file
jd user.json

Install

There're pre-built binaries for Mac, Linux, FreeBSD and Windows on the releases page.

Mac (Homebrew)
brew tap tidwall/jd
brew install jd
Build
go get -u github.com/tidwall/jd/cmd/jd

For a very fast JSON stream editor, check out jsoned.

Contact

Josh Baker @tidwall

License

JD source code is available under the MIT License.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(path string) error

Types

type Editor

type Editor struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis
cmd
jd

Jump to

Keyboard shortcuts

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