Giving types to jq. JQ is a successful tool for json manipulation.
JQ has a problem though, it's errors are kind of hard to decipher. When you start creating some internal data as part of some larger transformation, it might be hard to pinpoint the source of an error. That is because JQ doesn't keep track of the input data flow, it merely interprets it. So, when jq has an error, it is local.