counsel-jq
yamlpath
counsel-jq | yamlpath | |
---|---|---|
3 | 9 | |
123 | 109 | |
1.6% | - | |
0.0 | 4.8 | |
10 months ago | 3 months ago | |
Emacs Lisp | Python | |
GNU General Public License v3.0 only | ISC License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
counsel-jq
-
jq 1.7 Released
Didn’t know this. Thanks for the tip!
Personally, when I test REST APIs, I use „restclient.el“ all the time which also comes with a great JQ integration („jq-set-var“ for example for deriving request variables from responses). For traversing larger responses I use „counsel-jq“ in a customized JSON mode: https://github.com/200ok-ch/counsel-jq
But I’ll give the major mode a try, too.
- jless: a command-line JSON viewer, written in Rust
-
Extracting Objects Recursively with Jq
If anyone is an emacs user and this sounds compelling, I recommend counsel-jq[0] for the sort of feedback loop described here.
[0]: https://github.com/200ok-ch/counsel-jq
yamlpath
-
jq 1.7 Released
A couple more alternatives:
https://github.com/kellyjonbrazil/jello
https://github.com/wwkimball/yamlpath
-
The yaml document from hell
I used the official reference implementation to make a CLI converter between NestedText and TOML, JSON, and YAML. When generating one of these formats, you can use yamlpath queries to concisely but explicitly apply supported types to data elements.
-
The YAML Document from Hell
I'm a huge fan of NestedText, especially as there is no escaping needed ever.
If you ever want to use it as a pre-format to generate either TOML, JSON, or YAML, I used the official reference implementation to make a CLI converter between them and NestedText.
When generating one of these formats, you can use yamlpath queries to concisely but explicitly apply supported types to data elements.
- My CLI converter: https://github.com/AndydeCleyre/nestedtextto
- yamlpath info: https://github.com/wwkimball/yamlpath/wiki/Search-Expression...
-
Replace Specific Lines in a JSON file
Not what you're asking, but if you wanted to do this with yamlpath:
-
jq help: is it possible to replace a key-value in one json file using the data from another json file?
You may want to take a look at yamlpath for this. If I remember when I'm at a computer I'll try to post more.
-
An introduction to the magic of jq - Understanding the basics of jq with a realistic example
I'm no expert in any of these tools, but here are some yamlpath and jello examples to match:
-
Top python libraries/ frameworks that you suggest every one
yamlpath
-
jq error out when parse multiple lines without \n
FWIW, yamlpath (tested with 3.6.4) seems to strip and forgive those characters:
- List of JSON tools for command line
What are some alternatives?
gojq - Pure Go implementation of jq
jiq - jid on jq - interactive JSON query tool using jq expressions
jfq - JSONata on the command line
jinsi - JSON/YAML homoiconic templating language
fzf - :cherry_blossom: A command-line fuzzy finder
taskipy - the complementary task runner for python
rsl - reserialise: lossy but versatile conversion between data serialisation formats
pxi - 🧚 pxi (pixie) is a small, fast, and magical command-line data processor similar to jq, mlr, and awk.
jackson-jq - jq for Jackson Java JSON Processor
nvim-jqx - Populate the quickfix with json entries
yaml.el - YAML parser in Elisp
Textrude - Code generation from YAML/JSON/CSV models via SCRIBAN templates