Git Product home page Git Product logo

jsonui's Introduction

JSONUI

jsonui is an interactive JSON explorer in your command line. You can pipe any JSON into jsonui and explore it, copy the path for each element.

Install

go get -u github.com/gulyasm/jsonui

Binary Releases

Binary releases are availabe

Usage

Just use the standard output:

cat test_big.json | jsonui

Keys

j, DownArrow

Move down a line

k, DownUp

Move up a line

J/PageDown

Move down 15 lines

K/PageUp

Move up 15 lines

h/?

Toggle Help view

e

Toggle node (expend or collapse)

E

Expand all nodes

C

Collapse all nodes

q/Ctrl+C

Quit jsonui

Acknowledgments

Special thanks for asciimoo and the wuzz project for all the help and suggestions.

jsonui's People

Contributors

gulyasm avatar mattroseman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jsonui's Issues

[idea] search feature

Another improvement could be a search feature. Search by key (?) and search by value. For instance I know the value and I want to figure out its path.

Large ints are shown as double

$ <<command>> | jq .saveDate
1605792858032
$
$ <<command>> | jsonui
┌─ tree ────────┐ ┌─ text ──────────────────────────────────┐
│root           │ │1.605792858032e+12                       │
│├─ checkmarkCon│ │                                         │
│├─ saveDate    │ │                                         │
│└─ search      │ │                                         │
│               │ │                                         │

Null values are shown as "TODO" string

Null values are shown in a tree as "TODO" string.

To reproduce this:

echo '{"foo":null}' | jsonui

Output is:

┌─ tree ──┐ ┌─ text ───────────────────┐
│root     │ │{                         │
│└─ foo   │ │  "foo": "TODO"           │
│         │ │}                         │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
└─────────┘ └──────────────────────────┘
┌─ path ───────────────────────────────┐
└──────────────────────────────────────┘

Expect this:

┌─ tree ──┐ ┌─ text ───────────────────┐
│root     │ │{                         │
│└─ foo   │ │  "foo":  null            │
│         │ │}                         │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
│         │ │                          │
└─────────┘ └──────────────────────────┘
┌─ path ───────────────────────────────┐
└──────────────────────────────────────┘

Binary releases

It would be nice for non-Goers to be able to get binary releases, you could do something like mentioned in this PR.

h/l scrolling

If i m not mistaken, there is no way to scroll in horizontal direction (with h/l or left/right). This means that if objects has long value, it overflows the window. There should be something to handle this.

Loving this app tho !!! so minimal I install it on every server I have access to xD

[idea] copy path to clipboard

It would be a useful feature to copy the path of a node to the clipboard. For instance I'm looking for a value, I find its node and I want to paste the path of the node to an application.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.