Swift Accessing Values in Dictionary
<p>I have a swift dictionary and I am trying to access my values in my array.</p>

<p>My Dictionary that I make looks like this:</p>

<pre><code>["results": {
Democrats =     {
    percent = 67;
    raw = 4;
};
Republicans =     {
    percent = 33;
    raw = 2;
};
"total_answers" = 6;
}, "success": 1]
</code></pre>

<p>I made another dictionary to get this:</p>

<pre><code>let test = dictionary["results"] as! [String : AnyObject] 

["Democrats": {
percent = 67;
raw = 4;
}, "Republicans": {
percent = 33;
raw = 2;
}, "total_answers": 6]
</code></pre>

<p>I can access values like:</p>

<pre><code>let testing = test["total_answers"]
</code></pre>

<p>I want to access the values for percent and raw for example: </p>

<pre><code>Democrats =     {
percent = 67;
raw = 4;
};
</code></pre>

<p>The percent and raw key are static but the Democrats is a string that will never be the same. </p>