title: how to add dynamic json object to jq bash
body: <p>I need to add a dynamic JSON object according to arguments passed using a bash.Currently, I am abale to generate dynamic tables object but in output it is appending as a string. Please help me.
  <code>bash demo.bash sarika@gmail.com abc demo h</code>
  I have code: </p>
  
  <pre><code>Tables=$(  for i in "${@:3}"; do
                  jq -n \
                    --arg tn $i \
                    '{"table_name":$tn}'
                  done )
  
  echo $Tables |jq '.'
  tab=$( echo $Tables |jq '.'  )
  # tab= $Tables |jq '.'
  
  JSON_STRING=$( jq -n \
                    --arg gb "$VALUE" \
                    --arg tables "$tab" \
                    '{"email":$gb,"tables":[($tables)]}'\
                    )
  </code></pre>
  
  <p>Output it is giving: </p>
  
  <pre><code>{
    "email": "sarika@gmail.com",
    "tables": [
      "{\n \"table_name\": \"demo\",\n}\n{\n \"table_name\": \"h\",\n}"
    ]
  }
  
  </code></pre>
  
  <p>I Need a result like:</p>
  
  <pre><code>{
    "email": "sarika@gmail.com",
    "tables": [
      {
        "table_name": "table1"
      },
      {
        "table_name": "table2"
      }
    ]
  }
  </code></pre>