title: Iterating json array in javascript
body: <p>after looking through a lot of similar questions on SO, I still can't iterate my json structure. How can I reach the value (key) of my inner array?</p>
  <pre><code>var data = {&quot;User1&quot;:{&quot;Service1&quot;:2,&quot;Service2&quot;:1},&quot;User2&quot;:{&quot;Service3&quot;:1}}
              
  for(var user in data) {
      document.write(user + ': ')
               
      for(var service in data[user]){
          document.write(service + ': ' + user[service])
      }
      document.write(&quot;&lt;br /&gt;&quot;)
  }
  </code></pre>
  <p>This prints:</p>
  <blockquote>
  <p>User1: Service1: undefined Service2: undefined</p>
  <p>User2: Service3: undefined</p>
  </blockquote>
  <p>And I'd like it to print</p>
  <blockquote>
  <p>User1: Service1: 2 Service2: 1</p>
  <p>User2: Service3: 1</p>
  </blockquote>
  <p>Is javascript enough or do I need jQuery?
  Thanks in advance!</p>