jq convert 2D array JSON to array with objects
Verified Environment Version OS Ubuntu 20.04.5 LTS jq jq-1.6 What to do Note https://stedolan.github.io/jq/manual/ –slurp/-s: Instead of running the filter for each JSON object in the input, read the entire input stream into a large array and run the filter just once. to_entries, from_entries, with_entries These functions convert between an object and an array of key-value pairs. If to_entries is passed an object, then for each k: v entry in the input, the output array includes {"key": k, "value": v}....