rapidjson writer generate extra braces
<p>I just try to use rapidjson.
And write some code to translate code into string.</p>

<pre><code>Document dd;
dd.SetObject();

Value num(kNumberType);
num.SetInt(23);

dd.AddMember("number", num, dd.GetAllocator());

GenericStringBuffer&lt; UTF8&lt;&gt; &gt; buffer;
Writer&lt;GenericStringBuffer&lt; UTF8&lt;&gt; &gt; &gt; writer(buffer);

dd.Accept(writer);

// use writer
writer.StartObject();
writer.EndObject();

printf("%s\n", buffer.GetString());
</code></pre>

<p>The output is</p>

<pre><code>{"number":23}{}
</code></pre>

<p>It's weird to get extra braces after the object body. But it works good with pretty writer.</p>

<pre><code>StringBuffer buffer;
PrettyWriter&lt;StringBuffer&gt; writer(buffer);
dd.Accept(writer);
printf("%s\n", buffer.GetString());
</code></pre>

<p>I got result like this:</p>

<pre><code>{
"number": 23
}
</code></pre>
