title: Is there a way to read all key-value pairs in the JSON file and then initialize all variables accordingly in shell?
body: <p>Given a JSON file, <code>arguments.json</code>:</p>
  
  <pre><code>{"dagger": true, "version": false, "nether_strike": true, 
   "greater_bash": "5", "FILE": "ancientscroll.txt", 
   "empower_haste": "1", "help": false}
  </code></pre>
  
  <p>I can read using <code>jq</code> in shell and initialize the variables individually:</p>
  
  <pre><code>dagger=$(cat arguments.json | jq '.["dagger"]')
  greater_bash =$(cat arguments.json | jq '.["greater_bash"]')    
  
  echo $dagger
  echo $greater_bash
  </code></pre>
  
  <p><strong>Is there a way to read all key-value pairs in the JSON file and then initialize all variables accordingly in shell?</strong></p>