title: Outputting Json with the Razor view engine
body: <p>I've got a <code>dictionary&lt;string,string&gt;</code> as part of my view model. What I'm trying to do is cycle this object and output it as a json object. My reason for this is so I can localise my client script files correctly.</p>
  
  <p>The output for this needs to look something like </p>
  
  <pre><code>var clientStrings = {"test":"yay","goodBye":"Nah"};
  </code></pre>
  
  <p>Any ideas how to achieve this correctly.</p>
  
  <p>Thanks in advance.</p>