You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jc JSONifies the output of many CLI tools and file-types for easier parsing in scripts.
This allows further command-line processing of output with tools like jq or jello by piping commands...
The jc parsers can also be used as python modules. In this case the output will be a python dictionary, or list of dictionaries, instead of JSON
note that for parsing XML files, jc also depends on the python3-xmltodict package:
$ curl -s 'https://www.w3schools.com/xml/note.xml' | jc --xml
jc: Error - Parser issue with xml:
LibraryNotInstalled: The xmltodict library is not installed.
If this is the correct parser, try setting the locale to C (LANG=C).
For details use the -d or -dd option. Use "jc -h --xml" for help.
after installed python3-xmltodict:
$ curl -s 'https://www.w3schools.com/xml/note.xml' | jc --xml
{"note":{"to":"Tove","from":"Jani","heading":"Reminder","body":"Don't forget me this weekend!"}}
https://github.com/kellyjonbrazil/jc
The text was updated successfully, but these errors were encountered: