Re:RX – a new random-access JSON alternative
by creationix on Wednesday March 18, 2026 @11:39PM
(#47434626)
Or in this case, just do `rx file.rx` It has jq like queries built in and supports inputs with either rx or json. Also if you prefer jq, you can do `rx file.rx | jq`
[ Parent
| on HN ]
Re:RX – a new random-access JSON alternative
by dietr1ch on Thursday March 19, 2026 @11:13AM
(#47440883)
wow, on that case then using `jq` is just a presentation preference at the very last step unless jq is more expressive (which might be the case given how long it has been around?).
Re:RX – a new random-access JSON alternative
by creationix on Thursday March 19, 2026 @01:41PM
(#47443068)
right, the jq query language is much more complex and featureful than the simple selector syntax I added to the rx-cli. But more could be added later as needed or it could just stream JSON output. It would be pretty trivial to hook up a streaming JSON encoder to rx-cli which could then pipe to jq for low-latency lookups. The problem is jq would need to JSON parse all that data which will be expensive.