title: Pass Dictionary<String,List<String>> to java script
body: <p>I would like to pass a  Dictionary> to client using JavaScript.</p>
  
  <p>I did look at this <a href="https://stackoverflow.com/questions/13885236/pass-dictionarystring-liststring-to-javascript-array">post</a> and I didn't understand exactly how to proceed. 
  In case I'm doing something wrong I'll explain what I want to do.
  The dictionary contains the 'name' key of all worksheets in the Excel file, and the 'value' is the column value of the first row in that worksheet.
  The UI of the client should have two "drop list", the first will contain the key which is all the names of the worksheet in the Excel file.
  The second contain all the column value of the first row of the worksheets that will choose in the first drop list – which is actually a List as the value in the dictionary.</p>
  
  <p>So all the back end C# code is working fine. Now I need help in the front end JavaScript.</p>
  
  <p>How do I parse the data to a key value so I can do a "search" on the keys as the client chooses some "key" in the first drop list so I can get back the relevant values as a list?</p>
  
  <p>Thanx!</p>
  
  <pre><code>   var ajaxRequest = $.ajax({
          type: "POST",
          url: "http://localhost:1894/api/Values",
          contentType: false,
          processData: false,
          data: data,
          success: function(dataTest) {
  
          }
      });
  </code></pre>
  
  <p>This is the JSON that I get back from the server:</p>
  
  <pre><code>{"First":["Name","Link","User","Pass"],"Sec":["test01"]}
  </code></pre>
  
  <p>How would I perform a search on this like in C#? I want to be able to do something like this: "dict.TryGetValue(key, out value); and the out value would return as an array of string or as a List.</p>