Calendars, SSH keys, and messy spreadsheet exports are easy to read by eye but a pain to script against. In Part 3 of JC Tips and Tricks, we turn .ics files, authorized_keys files, and headerless CSV/TSV files into clean JSON you can query with jq.
Tag Archives: json
How to export bash regular and associative arrays to JSON with JC
The jc typeset or declare command parser can make exporting bash variables, arrays, and associative arrays to JSON quick and easy.
JC Tips and Tricks – Part 2
Tips and tricks for using JC interactively, in scripts, and in automation.
In Part 2 we look at using JC to parse URLs, POSIX paths, and git log output.
JC Tips and Tricks – Part 1
Tips and tricks for using JC interactively, in scripts, and in automation.
In Part 1 we look at using JC as a Subnet Calculator, for exploring X.509 certificates, and for converting dates and timestamps.
JC Version 1.22.0 Released
Jc now supports scores of /proc files, new magic syntax for /proc files, and enhanced metadata output.
Tutorial: Rapid Script Development with Bash, JC, and JQ
Tutorial demonstrating the rapid development of a subnet scanning Bash script made possible with the power of JSON, jc, and jq.
JC Version 1.21.0 Released
jc now supports metadata output, including timestamp, parser name, magic command, and magic command exit code. New Syslog and CEF standard and streaming parsers, IP Address string parser, Plist parser, and mdadm command output parser included.
Convert X.509 Certificates to JSON with JC
Learn how to extract X.509 certificate metadata to JSON values for easier use in automation scripts. Works with DER, PEM, PKCS #7, and PKCS #12 files.
JC Version 1.20.0 Released
jc now supports YAML output. Standard and Streaming parsers for top output are also now included.
Working with JSON in Various Shells
In this article I give a quick snapshot of what it’s like to work with JSON in various traditional and next generation shells. Traditional shells like Bash and Windows Command Prompt (cmd.exe) don’t have built-in JSON support and require 3rd party utilities. Newer shells like NGS, Nushell, Oil, Elvish, Murex, and PowerShell have JSON serialization/deserialization and filtering capabilities built-in for a cleaner experience.