title: Updating json with lodash
body: <p>Actually I need to handle mysite frontend fully with json objects(React and lodash).</p>
  
  <p>I am getting the initial data via an ajax call we say,</p>
  
  <pre><code>starred[] //returns empty array from server
  </code></pre>
  
  <p>and am adding new json when user clicks on star buton it,</p>
  
  <pre><code>starred.push({'id':10,'starred':1});
  </code></pre>
  
  <p>if the user clicks again the starred should be 0</p>
  
  <pre><code>current_star=_findWhere(starred,{'id':10});
  _.set(curren_star,'starred',0);
  </code></pre>
  
  <p>but when doing console.log</p>
  
  <pre><code>console.log(starred); //returns
  [object{'id':10,'starred':0}]
  </code></pre>
  
  <p>but actually when it is repeated the global json is not updating,while am performing some other operations the json is like,</p>
  
  <pre><code>console.log(starred); //returns
  [object{'id':10,'starred':1}]
  </code></pre>
  
  <p>How to update the global , i want  once i changed the json, it should be changed ever.Should I get any idea of suggesting some better frameworks to handle json much easier.</p>
  
  <p>Thanks before!</p>