e set the exit status code based on the output c compact instead of pretty-printed output Unmodified (except for formatting, but note that IEEE754 is usedįor number representation internally, with all that that implies).įor more advanced filters see the jq(1) manpage ("man jq") Its JSON text inputs and producing the filter's results as JSON on Jq is a tool for processing JSON inputs, applying the given filter to version show program's version number and exit in-place, -i Edit files in place (no backup - use caution) explicit-end When using -yaml-output, always emit explicit document end (".") explicit-start When using -yaml-output, always emit explicit document start ("-") When using -yaml-output, indent block style lists (sequences) with 0 spaces instead of 2 When using -yaml-output, specify string wrap width Setting this to 1.2 will cause strings like 'on' and 'no' to be emitted unquoted. When using -yaml-output, specify output grammar (the default is 1.1 and will be changed to 1.2 in a future version). This option is incompatible with jq filters that do not expect these extra items. Preserve YAML tags and styles by representing them as extra items in their enclosing mappings and sequences while in JSON. Transcode jq JSON output back into YAML and emit it. Transcode jq JSON output back into YAML and emit it h, -help show this help message and exit Yq transcodes YAML documents to JSON and passes them to jq. Yq: Command-line YAML processor - jq wrapper for YAML documents Transcoding is available with the tomlq -toml-output/ tomlq -t option. Tomlkit library to transcode TOML to JSON, then pipes it to jq. The yq package installs an executable, tomlq, which uses the Entity expansion and DTD resolution is disabled to avoid The full doc into memory (for example, stream a Wikipedia database dump withĬat enwiki-*.xml.bz2 | bunzip2 | xq. Use -xml-item-depth to descend into large documents, streaming their contents without loading Multiple XML documents can be passed in separate files/streams as The yq package installs an executable, xq, which Check your jq filter for compatibility/semantic validity when using the -Y option. A filter that expects all array entries to be mappings may break due to the presence of string For example, a jq filter that counts entries in the Instances array will come up withĤ entries instead of 2. The -Y option is incompatible with jq filters that do not expect the extra information injected into the document
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |