title: Deserialize Json in C# - How to Handle null Return Values
body: <p>I am using the following code:</p>
  
  <pre><code>myObj jsonStream = ser.Deserialize&lt;myObj&gt;(jsonStream);
  </code></pre>
  
  <p>And all was working fine until the JSON that came back had a null value for one of the fields.  i.e.:</p>
  
  <pre><code>"name" : null
  </code></pre>
  
  <p>During the deserialization process, it's throwing an exception.  In my myObj, I have a member:</p>
  
  <pre><code>public string name;
  </code></pre>
  
  <p>How can I gracefully handle the odd null value coming back from my datasource using the System.Web.Script.Serialization assembly?  I tried:</p>
  
  <pre><code>public string name = "";
  </code></pre>
  
  <p>But that didn't work.</p>