title: Calling two sets of json using D3.json
body: <p>I have currently found myself in a situation whereby, I need two sets of json &amp; functions!</p>
  
  <p>At the moment I have: </p>
  
  <pre><code>  d3.json("http://names.json", function (json) {
  
           });
  </code></pre>
  
  <p>I therefore, wondering whether it was possible two call two different functions &amp; urls, one being a default json (<a href="http://names.json" rel="nofollow">http://names.json</a>) &amp; another being called depending on a boolean. </p>
  
  <p>One idea that I had was to call another d3 method inside the current one, but it didnt work.</p>
  
  <p>I have currently seen only a few jquery examples and none that relate to d3.json method.</p>
  
  <p>thanks in advance. </p>