title: Get value from dictionary in JavaScript by key
body: <p>In <code>JavaScript</code> script I have created following dictionary.</p>
  
  <pre><code>var dictionary =[];
  $(function () {
    dictionary.push({
      key: @item.Key.ToShortDateString().ToString(),
      value: @Html.Raw(JsonConvert.SerializeObject(item.Value)),
    });
    alert(dictionary['2017-09-19']);
  });
  </code></pre>
  
  <p>In alert it shows me <code>undefined</code>. How can I read value from this dictionary?</p>