title: How to create and add values to Dictionary in swift
body: <p>I want to create a Dictionary in swift with different type of data(array, string,dictionary)I am able to insert new data to a key but having difficulty in appending more values to them 
  here is the json for the dictionary </p>
  
  <pre><code>{
    "GenInfo": {
      "First Name":"Varun",
      "Last Name":"Naharia",
      "Phone No":"123456789"
    },
    "LangInfo": ["Hindi","English","Urdu","French"],
    "EduInfo": 
      [
        {
          "Collage":"CIITM",
          "Year":"2009",
          "Degree":"BCA"
        },
        {
          "Collage":"Dept. Of Comp. Sci. &amp; Infor. University Of Kota",
          "Year":"2013",
          "Degree":"MCA"
        }
      ]
  }
  </code></pre>
  
  <p>I want to add these values to dictionary one by one like first GenInfo, then first language of LangInfo then EduInfo</p>
  
  <p><img src="https://i.stack.imgur.com/i2l1y.png" alt="LangInfo">
  Lang Info</p>
  
  <p><img src="https://i.stack.imgur.com/TbrKV.png" alt="EduInfo">
  EduInfo</p>
  
  <p>I Used <code>dict["GenInfo"] = ["FirstName":first,"LastName":last,"Phone":phone]</code> to add the GenInfo in the dic where first and last is the variable with value.</p>
  
  <p><strong>EDIT #1</strong>
  <code>var dict = Dictionary&lt;String, Any&gt;()</code></p>