jiq
yamlpath
Our great sponsors
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.
jiq
-
jsonpath
Jiq which is an interactive JSON query explorer.
-
Tell HN: Microsoft forks MIT licensed repo, and changes the copyright to them
No, you cannot.
I'd advise you to fixup any forks on GitHub, e.g. https://github.com/fiatjaf/jiq/blob/master/LICENSE, which are currently in breach of license.
You'll need to inform anyone who forked your code, too.
-
Tips on Adding JSON Output to Your CLI App
What kind of thing are you trying to do?
jq can get pretty deep but for most things in this area I'm not sure how it could improve upon, but would be interested in hearing alternatives.
https://github.com/fiatjaf/jiq
Is a realtime feedback wrapper which I find useful when crafting one-off command line uses for jq and it starts getting crazy.
-
An Introduction to JQ
Something I just learned about the other day was jid [0] to help query the json keys
[0] https://github.com/fiatjaf/jiq
-
List of JSON tools for command line
There is also https://github.com/fiatjaf/jiq
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?
jid - json incremental digger
jinsi - JSON/YAML homoiconic templating language
fx - Terminal JSON viewer & processor
pxi - 🧚 pxi (pixie) is a small, fast, and magical command-line data processor similar to jq, mlr, and awk.
kubectl-jq - Kubectl plugin that works like "kubectl get" but runs everything through a JQ program you provide
taskipy - the complementary task runner for python
rq - Record Query - A tool for doing record analysis and transformation
nvim-jqx - Populate the quickfix with json entries
dasel - Select, put and delete data from JSON, TOML, YAML, XML and CSV files with a single tool. Supports conversion between formats and can be used as a Go package.
Textrude - Code generation from YAML/JSON/CSV models via SCRIBAN templates
jql - Easy JSON Query Processor with a Lispy syntax in Go
strictyaml - Type-safe YAML parser and validator.