cat "$FileName" | jq --sort-keys 'map({"author_id": .author.id,"author": .author.name, "badge": .author.badges[0].title, "message", "timestamp", "time_in_seconds", "time_text"})' > "$TargetName"
produces output with "time_in_seconds": null if there was no "time_in_seconds" in source JSON. How to eliminate this:
- for this very attribute?
- for all attributes?