title: Implementing Custom JsonWriter (JSON.net)
body: <p>I have been working on implementing this a custom JSON writer by following <a href="http://www.newtonsoft.com/json/help/html/CustomJsonWriter.htm" rel="nofollow noreferrer">this sample</a></p>
  
  <p>I'm overriding the <code>WriteValue</code> methods so that instead of printing the value of a json, I print the <code>Type.ToString()</code> and conceal the real value of the item.</p>
  
  <p>I'm having trouble with this method: </p>
  
  <pre><code>private void WriteValueElement(string elementName, JTokenType type)
  {
      _writer.WriteStartElement(elementName);
      _writer.WriteAttributeString("type", type.ToString());
  }
  </code></pre>
  
  <p>And particularly with this statement <code>_writer.WriteStartElement(elementName);
  </code>
  I just can't figure out where this WriteStartElement is. This method signature doesn't exist in the <a href="https://github.com/JamesNK/Newtonsoft.Json/blob/0238b51162c24caeaf87ac3152d648d130961f49/Src/Newtonsoft.Json/JsonWriter.cs" rel="nofollow noreferrer">baseClass</a>, but also nothing in the sample</p>