title: c# parse json value, check if null
body: <p>So I have this Web API that calls a service which in turn, returns a json string.
  The string looks a bit like this:</p>
  
  <pre><code>{
      "title": "Test",
      "slug": "test",
      "collection":{  },
      "catalog_only":{  },
      "configurator":null
  }
  </code></pre>
  
  <p>I have cut this down considerably to make it easier to see my issue.</p>
  
  <p>When I make my API call, I then use a Factory method to factorize the response which looks something like this:</p>
  
  <pre><code>    /// &lt;summary&gt;
      /// Used to create a product response from a JToken
      /// &lt;/summary&gt;
      /// &lt;param name="model"&gt;The JToken representing the product&lt;/param&gt;
      /// &lt;returns&gt;A ProductResponseViewModel&lt;/returns&gt;
      public ProductResponseViewModel Create(JToken model)
      {
  
          // Create our response
          var response = new ProductResponseViewModel()
          {
              Title = model["title"].ToString(),
              Slug = model["slug"].ToString()
          };
  
          // Get our configurator property
          var configurator = model["configurator"];
  
          // If the configurator is null
          if (configurator == null)
              throw new ArgumentNullException("Configurator");
  
          // For each item in our configurator data
          foreach (var item in (JObject)configurator["data"])
          {
  
              // Get our current option
              var option = item.Value["option"].ToString().ToLower();
  
              // Assign our configuration values
              if (!response.IsConfigurable) response.IsConfigurable = (option == "configurable");
              if (!response.IsDesignable) response.IsDesignable = (option == "designable");
              if (!response.HasGraphics) response.HasGraphics = (option == "graphics");
              if (!response.HasOptions) response.HasOptions = (option == "options");
              if (!response.HasFonts) response.HasFonts = (option == "fonts");
          }
  
          // Return our Product response
          return response;
      }
  }
  </code></pre>
  
  <p>Now, as you can see I am getting my configurator property and then checking it to see if it's null.
  The json string shows the <strong>configurator</strong> as <strong>null</strong>, but when I put a breakpoint on the check, it actually shows it's value as <strong>{}</strong>.
  My question is how can I get it to show the value (null) as opposed to this bracket response?</p>