title: How to access JSON Object.$$state.value?
body: <p>Warning: I'm going to sound like I have no idea what I'm talking about here, because I kind of don't. I'm in the process of self-learning Javascript and AngularJS through a lot of trial and error coding.</p>
  
  <p>I have some javascript code (hesitant to copy here because it's a mess) that returns an Object with the following structure:
  <img src="https://i.stack.imgur.com/WpCvX.png" alt="enter image description here"></p>
  
  <p>What I want to save to a variable is the object corresponding to Object.$$state.value in the picture. This object has username, hash and salt, which are what I care about. I don't know what all the other stuff like $$state are or how they got there.</p>
  
  <p>However, if I do this (let's call the main Object "whatIHave"):</p>
  
  <pre><code>var whatIWant = whatIHave.$$state.value;
  </code></pre>
  
  <p>this does not work. whatIWant is null.</p>
  
  <p>Does anyone recognize what's going on here? What is $$state, how did it get there, and how can I extract the value I want?</p>