title: load data from json into extjs
body: <p>i want to load one value from a json into a var in an extjs app. The json output looks like this</p>
  
  <pre><code>{"rechten":[{"name":"baas"}]}
  </code></pre>
  
  <p>If i want to use it in a store i know what to do but i use that only for grids before. I want a var like this</p>
  
  <pre><code> var rechten = "baas";
  </code></pre>
  
  <p>so i can check this into something else:</p>
  
  <pre><code>if(rechten == "baas") { alert('je bent de baas') } 
  else { alert('helaas je bent arbeider')};
  </code></pre>
  
  <p>so my question is how can i check the name value from that json in this if else statement?</p>