Read JSON file in Objective C
<p>I've been searching around for about two hours now and it seems nobody has a clear explanation of <strong>how to read a JSON file in Objective C</strong>.</p>

<p>Let's say I have a JSON file called <code>colors.json</code>, looking like this:</p>

<pre><code>{
    "colors": [{
        "name": "green",
        "pictures": [{
            "pic": "pic1.png",
            "name": "green1"
        }, {
            "pic": "pic2.png",
            "name": "green2"
        }]
    }, {
        "name": "yellow",
        "pictures": [{
            "pic": "pic3.png",
            "name": "yellow1"
        }]
    }]
}
</code></pre>

<ol>
<li><p>Where do I copy that file to in my XCode path?</p></li>
<li><p>How do I get this file programmatically?</p></li>
<li><p>After I have this file - How do I read the <code>name</code> value for each <code>colors</code> object?</p></li>
<li><p>How would I say "for each picture in the color with the name <code>green</code>, get the <code>name</code> value in a NSString"?</p></li>
</ol>

<p>I've been trying a few methods but haven't reached a conclusion yet. Am I just understanding the concept of a JSON wrong?</p>