title: Seeding a Dashing list from an External JSON file
body: <p>I'm new to Dashing (and relatively new to Ruby) so I apologize in advance if this is a dumb question. Basically I'm trying to get Dashing to read a json file that I update every 10 seconds. But I can't seem to get my job to read the file or post it out to my List widget.</p>
  
  <p>Here's my job code:</p>
  
  <pre><code>require 'rubygems'
  require 'json'
  require 'pp'
  
  name_list = Hash.new(0)
  
  SCHEDULER.every '10s' do
      json = File.read('list.json')
      response = JSON.parse(json)
      name_list[people] = {label: response.keys, value: response.keys[]}
      send_event('whosHere', { items: response.values })
  end
  </code></pre>
  
  <p>and my JSON:</p>
  
  <pre><code>{
    "Mike": "Here",
    "Jon": "Out",
  }
  </code></pre>
  
  <p>And in case you need it my dashboard code:</p>
  
  <pre><code>&lt;% content_for(:title) { "My super sweet dashboard" } %&gt;
  &lt;div class="gridster"&gt;
    &lt;ul&gt;
      &lt;li data-row="1" data-col="1" data-sizex="1" data-sizey="1"&gt;
        &lt;div data-id="whosHere" data-view="List" data-title="Who's Home" style="background-color:#96bf48;"&gt;&lt;/div&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>