Comments (8)
This does sound handy, but definitely a task for later.
Are you thinking of syntactic JSON highlighting (make all object keys vomit-green?) or grep-style context highlighting (make the thing I was searching for bright red?)
from jq.
well, I meant more along the lines of syntactic highlighting. (afaik, grep is already configurable by the user )
Something smart like pjson ( http://igorgue.com/pjson/ ) or Ruby's awesome_print ( http://www.rubyinside.com/awesome_print-a-new-pretty-printer-for-your-ruby-objects-3208.html ) would be really sweet.
Sane defaults that uses the ANSI Terminal colors (http://en.wikipedia.org/wiki/ANSI_escape_code#Colors ) would be nice, because then every terminal could override those with their own theme colors.
from jq.
Hrm, that doesn't sound too bad. I'd go with something more like pjson than awesome_print; awesome_print looks amazing but it's output only makes sense to a Ruby programmer and it isn't valid JSON.
from jq.
yes please
from jq.
Yep. I understand. just meant awesome_print for an example. pjson like formatting would be great.
from jq.
COLORS PLEASEEE!!!
from jq.
Why not use something like ccze
instead and piping jq into it? If the -A
switch is supplied, raw ANSI ist used, perfect to pass it to something like less
(with -R
).
from jq.
ccze looks great, but I'd really love if this was built into jq. What I love about jq is that it doesn't need runtime env. like perl/ruby/python, else there are prolly tons of tools out there.
from jq.
Related Issues (20)
- OT: What versions of arm require `armel`? HOT 3
- We should add an info that release files are bare executables. HOT 1
- strftime produces corrupted characters in windows HOT 7
- Wrong math for big integers HOT 9
- [Feature] Add ~/.jq.d to default module search path HOT 6
- Python bindings HOT 1
- Running `jqtest` triggers UBSAN errors HOT 1
- jq_fuzz_fixed: count-down loop times out if the input is a big number HOT 10
- Strange jq performance problem HOT 14
- heap-buffer-overflow in jq1.7 at decNumber.c HOT 3
- CVE-2023-49355 status ? HOT 2
- Tests don't work in non-decnumber builds
- Feature Request - Full Path Json output HOT 5
- Broken non-Latin output HOT 14
- Version 1.7.1 not working well on XcodeCloud HOT 4
- 1 test fails on WSL Debian HOT 14
- Version number pattern
- Base64d filter is not working as expected. HOT 2
- Allow user to control colors of int/bool/number HOT 2
- Incorrect results when subtracting two long numbers HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jq.