jq takes JSON as input and transforms it according to the filters you supply. Since it’s a command-line tool, you can pipe ...
If you decide to spill the results, you can then use the spilled range operator (#) to perform a calculation on the spilled range. Simply reference the first cell of the spilled range with a # ...