 <p> You can access object properties in two ways:</p> <p><code>objectName.propertyName</code> or <code>objectName[propertyName]</code></p> <p>so in your case: </p> <pre><code>addeles[b].innerHTML = "&lt;img src='"+ jsonLoader["slider1"][b].coverlink +"'/&gt;" </code></pre> <p>or to make it dynamic:</p> <pre><code>var string = "slider1"; addeles[b].innerHTML = "&lt;img src='"+ jsonLoader[string][b].coverlink +"'/&gt;" </code></pre> <p>Source: <a href="http://www.w3schools.com/js/js_objects.asp" rel="nofollow">http://www.w3schools.com/js/js_objects.asp</a></p>