TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Jqview, a simple native GUI for inspecting JSON with jq

208 点作者 fiatjaf将近 5 年前

21 条评论

heinrichhartman将近 5 年前
You can get something fairly similar with fzf, using the --preview trick from [1]:<p><pre><code> echo &#x27;&#x27; | fzf --print-query --preview &quot;cat *.json | jq {q}&quot; </code></pre> <a href="https:&#x2F;&#x2F;paweldu.dev&#x2F;posts&#x2F;fzf-live-repl&#x2F;" rel="nofollow">https:&#x2F;&#x2F;paweldu.dev&#x2F;posts&#x2F;fzf-live-repl&#x2F;</a>
评论 #23437578 未加载
评论 #23438103 未加载
donio将近 5 年前
This uses <a href="https:&#x2F;&#x2F;github.com&#x2F;itchyny&#x2F;gojq" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;itchyny&#x2F;gojq</a> which is a pure Go re-implementation of jq. Can be used as a cli tool or as a library. Didn&#x27;t know about this, very cool that it exists!
ldd将近 5 年前
I made a VSCode extension for jq[0], so I really like when people see the power of jq.<p>I should probably update it with a couple of life improvements now that I think about it.<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;ldd&#x2F;vscode-jq" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ldd&#x2F;vscode-jq</a>
评论 #23434990 未加载
评论 #23442571 未加载
enriquto将近 5 年前
I too was falling into the trap of jq, but then I discovered gron, and it turned my world upside down. Long live gron!
评论 #23437560 未加载
mtmail将近 5 年前
<a href="https:&#x2F;&#x2F;github.com&#x2F;jcsalterego&#x2F;jqq&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jcsalterego&#x2F;jqq&#x2F;</a> is similar, written in Ruby by HN user <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;user?id=jcsalterego" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;user?id=jcsalterego</a>
Klonoar将近 5 年前
If you&#x27;re on macOS, I can&#x27;t recommend this app enough:<p><a href="https:&#x2F;&#x2F;apps.apple.com&#x2F;us&#x2F;app&#x2F;json-editor&#x2F;id567740330?mt=12" rel="nofollow">https:&#x2F;&#x2F;apps.apple.com&#x2F;us&#x2F;app&#x2F;json-editor&#x2F;id567740330?mt=12</a><p>jq and the like are great, but when you&#x27;re trying to understand something... NSTableView is often times easier to fall back to, haha.
评论 #23435416 未加载
yingw787将近 5 年前
I started using `jq` for my API project and I have to say it makes JSON munging much nicer on the command line. I think it&#x27;d be really cool in order to have a `jq` based redirection service, where you can paste in the URL of the API you want and a query parameter of the `jq` query you want to create.<p>Something like:<p><a href="https:&#x2F;&#x2F;jq.io&#x2F;https:&#x2F;&#x2F;myapi.com&#x2F;endpoint?jqparams=$PARAMS" rel="nofollow">https:&#x2F;&#x2F;jq.io&#x2F;https:&#x2F;&#x2F;myapi.com&#x2F;endpoint?jqparams=$PARAMS</a><p>So like bash via HTTP :)
评论 #23434333 未加载
评论 #23433973 未加载
atmosx将近 5 年前
Related tools for those working with JSON:<p>- jo: convert shell ouput to JSON<p>- jiq: interactive jq, useful when building complex jq queries
评论 #23435230 未加载
评论 #23441069 未加载
评论 #23434169 未加载
johnsonjo将近 5 年前
This is pretty tangential, but it’s interesting to me that the examples use Mises, Hayek, and Menger. These are three famous economists that of which Menger is a shared ancestor in the other two’s academic-advisor-genealogy. In academic advisor genealogy being a direct descendant of one academic advisor just means that you had them as an advisor, thus since an advisor has multiple Ph.D. students It creates a family tree like structure. Anyways, I only learned this, because my Dad is actually an academic advisor descendant of Mises and Menger. Anyways if there is any Ph.D.s lurking here on hacker news in a mathematical field you might be able to find your own advisor genealogy here: <a href="https:&#x2F;&#x2F;www.genealogy.math.ndsu.nodak.edu&#x2F;id.php?id=200008" rel="nofollow">https:&#x2F;&#x2F;www.genealogy.math.ndsu.nodak.edu&#x2F;id.php?id=200008</a>
jteppinette将近 5 年前
Happy to see a few Austrian school economists in the example data!
easytiger将近 5 年前
jq seemed super useful when I first found it, but ultimately it was always easier to write a few lines of python to do what I needed
nickodell将近 5 年前
This doesn&#x27;t seem to work that well. If you type invalid syntax, like &#x27;.[&#x27; then the window suddenly resizes to accomodate the error message, but not all of the text boxes resize.<p>jiq is probably a better tool.
评论 #23442344 未加载
freedomben将近 5 年前
Your hat tip to the famous Austrian economists in your examples, and the &quot;fiat&quot; part of your username are enough to indicate to me that we could be good friends ;-)
cube2222将近 5 年前
Nice project! Though as others already said, you can use fzf very effectively to get a GUI-like experience for such tools.<p>If you&#x27;re not a fan of jq for its syntax, check out jql[1]. It too helps you to transform json files, but does so with a consistent, lispy syntax.<p>[1]:<a href="https:&#x2F;&#x2F;github.com&#x2F;cube2222&#x2F;jql" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cube2222&#x2F;jql</a>
kissgyorgy将近 5 年前
You mean?<p><pre><code> cat json | jq | less </code></pre> I checked the code, it&#x27;s concatenating the output with newlines. Not necessary at all.
评论 #23434257 未加载
评论 #23440710 未加载
评论 #23434232 未加载
fphilipe将近 5 年前
Wasn&#x27;t able to run this yet.<p>For browsing a JSON file I can also recommend jsonfui. I&#x27;ve been using it for many years now and I&#x27;m actually surprised it doesn&#x27;t have more stars on GitHub.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;AdrianSchneider&#x2F;jsonfui" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;AdrianSchneider&#x2F;jsonfui</a>
rmetzler将近 5 年前
I like <a href="https:&#x2F;&#x2F;github.com&#x2F;akavel&#x2F;up" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;akavel&#x2F;up</a> as this works on the command line and helps building fast pipes not only with jq, but also with every other text wrangling tool. But I wish it would be a little bit more polished.
OJFord将近 5 年前
I wish jq had a different name. I don&#x27;t know its functions and (JSONPath&#x27;s?) syntax well, so I&#x27;m frequently trying to use it in a hurry and digging through jQuery search results to find what I need.
评论 #23435743 未加载
ajbruin将近 5 年前
I built a small tool named jl to convert JSON to lines of text.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;ajbruin&#x2F;jl" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ajbruin&#x2F;jl</a>
cylon13将近 5 年前
Nice tool, and nice choice of example names!
parentheses将近 5 年前
fantastic work! installed.