title: Swift:How to map a single key to Multiple values?
body: <p>I have successfully mapped a Single key to single value like this:</p>
  
  <pre><code>    class DefaultDoubleModel :BaseObject
  {
      var key : String = ""
      var value : String = ""
  }
  
        var toolChart :[DefaultDoubleModel]!
         self.BubbleChartXaxislabel = Array(GraphDataModel.toolChart.map({ (item) -&gt; String in
                          item.key
                      }))
                      self.BubbleChartValuesGraph = Array(GraphDataModel.toolChart.map({ (item) -&gt; String in
                          item.value
                      }))
  </code></pre>
  
  <p>This is true for single key and single value. But i have two values in a single key. How can i collect those values in array.</p>
  
  <p>For example i have like this..</p>
  
  <pre><code>{"value2":"80","value1":"120","key":"4"}
  </code></pre>