title: Append elements to tag in json dictionary using python
body: <p>How can I append to json file dictionary, a certain value to its specific tag.</p>
  <pre><code>{&quot;dict&quot;: [
      {
       &quot;tag&quot;: &quot;adult&quot;,
       &quot;name&quot;: [&quot;John&quot;, &quot;Elle&quot;],
       &quot;age&quot;: [&quot;25&quot;, &quot;23&quot;],
      },
      {
       &quot;tag&quot;: &quot;elderly&quot;,
       &quot;name&quot;: [&quot;Mary&quot;, &quot;Matthew&quot;],
       &quot;age&quot;: [&quot;67&quot;, &quot;80&quot;],
  }
  </code></pre>
  <p>Here, after user input their name and age, to find a way to <strong>append</strong> to json file in specific <strong>tag</strong> (eg. A person named &quot;<strong>Stacy</strong>&quot; of age <strong>29</strong>, should be added only to &quot;<strong>adult</strong>&quot;</p>
  <p>So the updated should look like so if we add eg. &quot;Stacy&quot; aged &quot;29&quot; to the adult tag:</p>
  <pre><code>{
       &quot;tag&quot;: &quot;adult&quot;,
       &quot;name&quot;: [&quot;John&quot;, &quot;Elle&quot;, &quot;Stacy&quot;],
       &quot;age&quot;: [&quot;25&quot;, &quot;23&quot;, &quot;29&quot;],
  }
  </code></pre>