Giter Site home page Giter Site logo

gulyasm / jsonui Goto Github PK

View Code? Open in Web Editor NEW
785.0 12.0 36.0 474 KB

jsonui is an interactive JSON explorer on your command line

License: Apache License 2.0

Go 98.56% Makefile 1.44%
golang command-line command-line-tool json json-parser terminal-based terminal-app productivity software-development api

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  avatar

jsonui's Issues

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

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.

[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.

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 ───────────────────────────────┐
└──────────────────────────────────────┘

[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.

Large ints are shown as double

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

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.