jqlang/jq
View on GitHub ↗ ★ 36,014 C
Command-line JSON processor
104 mentions on Hacker News by 79 people: 15 stories, 89 comments · first 2012-10-21 · latest 2026-03-29
20082026
-
…slow to start. Version 1.6 was especially abysmally slow to start, 10x times slower than 1.5: https://github.com/jqlang/jq/issues/1826 So any replacement candidate should also benchmark like hyperfine "jq .a <<< '{"a": 10 }'" . This…
comment by Self-Perfection · 2026-03-29 · in A Faster Alternative to Jq -
…to look at jq's VM implementation some time, it's kind of mind-blowing how it works under the hood: https://github.com/jqlang/jq/blob/master/src/execute.c It does some kind of stack forking which is what allows its funky syntax
comment by bouk · 2026-03-27 · in A Faster Alternative to Jq -
…type directly. Speaking of overhead, though, it turns out that the implementation of walk/1 ( https://github.com/jqlang/jq/blob/master/src/builtin.jq#L212 ) will actually run the filter on every element of an array , even though we're…
comment by naniwaduni · 2025-07-21 · in Jqfmt like gofmt, but for jq -
…plug the one-liner I use all the time, which summarizes the "structure" of a doc in a jq-able way: https://github.com/stedolan/jq/issues/243#issuecomment-48470... (I didn't write it, I'm just a happy user) For example: $ curl -s…
comment by rwiggins · 2025-07-21 · in Jqfmt like gofmt, but for jq -
…approach some time. [0] https://github.com/Maxdamantus/jq/blob/911d01aaa5bd33137fadf... [1] https://github.com/jqlang/jq/pull/2314 [2] I think I used the name "WTF-8b" as an allusion to UTF-8b/surrogateescape/PEP-383 which also encodes…
comment by maxdamantus · 2025-07-07 · in Corrected UTF-8 (2022) -
The XSL:T equivalent for JSON is jq https://github.com/jqlang/jq Learn it. It is insanely useful for mungling json in day to day work.
comment by bravesoul2 · 2025-06-27 · in XSLT – Native, zero-config build system for the Web -
Hi HN, we ran jq (github.com/jqlang/jq) through our static analysis tool. It's a fantastic, mature project (13 yrs, 230+ authors, Grade A avg. complexity). However, we found some serious concerns: multiple potential buffer overflows (Red…
comment by cpachmann · 2025-06-18 · in Analysis of Jq: Strengths, Critical Security Risks, and 2.9% Test Coverage -
…execution on the MCP server. What could possibly go wrong? Maybe this CVE-2025-48060 [0] [1]? [0] https://github.com/jqlang/jq/issues/3327 [1] https://nvd.nist.gov/vuln/detail/CVE-2025-48060
comment by rvz · 2025-05-30 · in Show HN: MCP Server SDK in Bash -
I hope you enjoy it! I sure did. If you enjoy it, you might also enjoy jq ( https://github.com/jqlang/jq ), which is also a sort of logic programming language (in that it has pervasive generators and backtracking). Icon has an Algol family…
comment by cryptonector · 2024-10-15 · in Can logic programming be liberated from predicates and backtracking? [pdf] -
…etc) I think the answer here is the shell, fswatch, and jq. https://github.com/emcrisostomo/fswatch https://github.com/jqlang/jq http://man.openbsd.org/sh
comment by rollcat · 2024-09-28 · in It is never too late to write your own C/C++ command-line utilities -
…local modification "-dirty" is appended to it. and one can see their invocation of --dirty here: https://github.com/jqlang/jq/blob/cff5336ec71b6fee396a95bb0e...
comment by mdaniel · 2024-09-17 · in macOS Sequoia is available today -
I can't know what "-dirty" implies, but https://github.com/jqlang/jq/commit/cff5336 is a pretty random commit from 2022 :-( https://github.com/apple-oss-distributions/distribution-macO... hasn't been updated with a "jq" directory yet
comment by mdaniel · 2024-09-17 · in macOS Sequoia is available today -
…result if your doing common things. The bugs i've encountered have usually been in exotic parts, ex https://github.com/jqlang/jq/issues/3128
comment by wwader · 2024-07-07 · in Jqjq: Jq Implementation of Jq -
Hey, it was discussed a bit some years ago https://github.com/jqlang/jq/issues/1892
comment by wwader · 2024-06-11 · in The simdjson library -
…an explanation of this feature here: https://subtxt.in/library-data/2016/03/28/json_stream_jq And: https://github.com/jqlang/jq/wiki/FAQ#streaming-json-parser The last time I tried, I think the reason I gave up on JQ for large inputs was…
comment by faizshah · 2024-05-06 · in Data Science at the Command Line, 2nd Edition (2021) -
Looks like you are correct https://github.com/jqlang/jq/blob/ed8f7154f4e3e0a8b01e6778de...
comment by mofosyne · 2024-05-05 · in Bytecode VMs in Surprising Places -
If I remember correctly, jq ( https://github.com/jqlang/jq ) also uses a bytecode interpreter under the hood
comment by cosmic_quanta · 2024-04-30 · in Bytecode VMs in Surprising Places -
…recently by a new team of maintainers and is rapidly working through a lot of longstanding issues ( https://github.com/jqlang/jq ), so I'm not sure if this is still the case
comment by pcthrowaway · 2024-03-22 · in DuckDB as the New jq -
…and allow the community to keep taking care of it. Just like it happened with the Jq tool [1]. [1]: https://github.com/jqlang/jq/releases/tag/jq-1.7
comment by j1elo · 2024-02-27 · in I turned my open-source project into a full-time business -
…syntax which needs them to match I also want to draw the reader's attention to the magic of |@uri < https://github.com/jqlang/jq/blob/jq-1.7/docs/content/manual... > for a bunch of cases, but doubly so in TFA's case where they're plugging…
comment by mdaniel · 2023-12-09 · in To a Man with `Jq`, Everything Looks Like JSON -
It was fixed in 2019 though? I don't understand your point. https://github.com/jqlang/jq/issues/1380
comment by eyegor · 2023-11-30 · in Jaq – A jq clone focused on correctness, speed, and simplicity -
The fact that jq takes almost a second to run on a Pi is crazy[0]. And the tool is written in C. [0] https://github.com/jqlang/jq/issues/1411
comment by sgt · 2023-11-30 · in Jaq – A jq clone focused on correctness, speed, and simplicity -
I think the original devs just got burnt out for a while https://github.com/jqlang/jq/issues/2305#issuecomment-157263...
comment by slaymaker1907 · 2023-11-30 · in Jaq – A jq clone focused on correctness, speed, and simplicity -
…next release where it follow the suggestion from the JSON spec and truncates to binary64 (double) https://github.com/jqlang/jq/pull/2949
comment by wwader · 2023-11-29 · in Jaq – A jq clone focused on correctness, speed, and simplicity -
Yeap was fixed in 1.7 https://github.com/jqlang/jq/pull/2646
comment by wwader · 2023-11-29 · in Jaq – A jq clone focused on correctness, speed, and simplicity -
I believe this has improved in jq 1.7: https://github.com/jqlang/jq/releases/tag/jq-1.7 > Use decimal number literals to preserve precision. Comparison operations respects precision but arithmetic operations might truncate.
comment by re · 2023-11-29 · in Jaq – A jq clone focused on correctness, speed, and simplicity -
…got transferred from the original author to a new organization, which allowed to resume operations: https://github.com/jqlang/jq/releases/tag/jq-1.7
comment by j1elo · 2023-11-28 · in Antirez' tiny JSON selector library -
…with Agent/Function type use cases or some pydantic-ish guardrails. Thanks for the Bookmark ! https://github.com/jqlang/jq/releases/tag/jq-1.7
comment by jimmySixDOF · 2023-11-08 · in Interactive examples for learning jq -
…¹ https://zsh.sourceforge.io/Doc/Release/User-Contributions.ht... ² https://github.com/jpmens/jo ³ https://github.com/stedolan/jq
comment by JNRowe · 2023-08-21 · in GNU Parallel, where have you been all my life? -
Hey, pick is implemented in jq here https://github.com/jqlang/jq/blob/master/src/builtin.jq#L258... using various path functions. When the jq manual say "path expression" like the argument to pick you can think of it as just normal jq…
comment by wwader · 2023-08-01 · in First release of jq in 5 years -
…guiding why and when they might decide to add specialized interpretations of pathexps. [1]: https://github.com/jqlang/jq/pull/2656#issuecomment-16228220...
comment by mpalmer · 2023-08-01 · in First release of jq in 5 years -
…hopefully be insightful and point out non-obvious things, like how jq is arguably abandonware. https://github.com/jqlang/jq/issues/2305
comment by hoherd · 2023-06-06 · in A better tool than jq for just extracting data, antonmedv's fx -
…/ WSL. The '--binary' option to not convert line delimiters is one of those pending improvements. https://github.com/stedolan/jq/commit/0dab2b18d73e561f511801...
comment by Calzifer · 2023-05-26 · in JJ: JSON Stream Editor -
…and bug fixes [3]. Maybe someone reading this is able and willing to join their efforts. [1]: https://github.com/stedolan/jq/issues/2305 [2]: https://github.com/stedolan/jq/pull/1697 [3]: https://github.com/stedolan/jq/issues/2550
comment by j1elo · 2023-05-26 · in JJ: JSON Stream Editor -
the obvious missing reference is jq https://github.com/stedolan/jq
comment by nextaccountic · 2023-03-16 · in Miller: Like Awk, sed, cut, join, and sort for CSV, TSV, and tabular JSON -
…for parsing CSVs into arrays of objects (and keeping numbers as numbers, dealing with nulls, etc) https://github.com/stedolan/jq/wiki/Cookbook#convert-a-csv-f...
comment by darrenf · 2023-03-16 · in Miller: Like Awk, sed, cut, join, and sort for CSV, TSV, and tabular JSON -
…model, at least for data processing. See 'Generators and iterators' section of the man page: https://github.com/stedolan/jq/blob/cff5336ec71b6fee396a95bb... * Designed for CLI, it makes it easy and even pushes you to express your program…
comment by odnoletkov · 2022-12-13 · in Solving Advent of Code with jq -
…turing complete for a long while. Here is the first prototype in haskell before it was convert to C https://github.com/stedolan/jq/commit/eca89acee00faf6e9ef55d... , it's very basic but i would guess it has enough things to be turing…
comment by wwader · 2022-11-26 · in Jqjq: Jq Implementation of Jq -
…into. Everyone should make sure their project's release process can promptly release updates! [1] https://github.com/stedolan/jq/issues/1110
comment by AgentME · 2022-10-05 · in Jq Internals: Backtracking (2017) -
…last release is 4 years ago? the tool is so popular that this kind of release cadence seems weird https://github.com/stedolan/jq/releases/tag/jq-1.6
comment by mi_lk · 2022-10-05 · in Jq Internals: Backtracking (2017) -
…you can use Range requests to download only the first, say, 50KB, and pipe it to gunzip and jq. ( https://github.com/stedolan/jq/issues/31#issuecomment-900184... ) I would also be interested in helping throw such an analytical dataset into…
comment by sajacy · 2022-09-07 · in Health insurers just published close to a trillion hospital prices -
…I use it mostly for little cli utilities, so maybe it isn’t an exact refutation of your claim. [0] https://github.com/stedolan/jq
comment by a_conservative · 2022-06-05 · in The Beauty of Unix Pipelines (2020) -
…own solution. Contributing a solution to https://rosettacode.org/wiki/Category:Jq is also good. 1- https://github.com/stedolan/jq/blob/master/src/builtin.jq
comment by preferjq · 2022-04-26 · in Zq: An easier and faster alternative to jq -
…jq, in terms of a small set of core primitives. The implementations can be inspected in builtin.jq. https://github.com/stedolan/jq/blob/master/src/builtin.jq#L3
comment by aarchi · 2022-04-26 · in Zq: An easier and faster alternative to jq -
…is currently lacking a maintainer to assess a number of PRs that have accumulated since 2018. [0] https://github.com/stedolan/jq/wiki/jq-Language-Description [1] https://github.com/fadado/JBOL/blob/master/fadado.github.io/...
comment by psacawa · 2022-04-26 · in Zq: An easier and faster alternative to jq -
https://github.com/stedolan/jq can manipulate arrays of objects and format as CSV
comment by TAForObvReasons · 2022-03-07 · in Select, put and delete data from JSON, TOML, YAML, XML and CSV files -
…a CI check for something that executes in milliseconds. [0] https://stackoverflow.com/a/1732454 [1] https://github.com/stedolan/jq [2] https://github.com/mikefarah/yq
comment by cfors · 2022-01-14 · in Grep one-liners as CI tasks