Jan 25, 2021 ยท Using JSON Array Variables in jq. Using the --slurp option you can store all JSON input records into an array. Using the --slurpfile option you can store all JSON records from a file into an array, and reference this array using a variable.. "/>