jq is a pretty wild language - didn't realize you could compose new objects with it. kind of a level up over jsonpath.
jq
# Turns an array of data into an object
.[] as [$id, $kind, $user_id, $ts] ?// {$id, $kind, $user_id, $ts}commit eef3a3a
you can also create functions (they call them modules). this one i use all the time to represent any json i come across as a schema:
https://gitlab.com/-/snippets/4884698

GitLabjq module : json schema inference ($4884698) · Snippets · GitLabGitLab.com