-Escape JSON property text

This commit is contained in:
JamesNK
2010-02-21 10:00:03 +00:00
parent 98f3757498
commit d4158bb53c
2 changed files with 17 additions and 7 deletions
+1 -7
View File
@@ -200,13 +200,7 @@ namespace Newtonsoft.Json
{
base.WritePropertyName(name);
if (_quoteName)
_writer.Write(_quoteChar);
_writer.Write(name);
if (_quoteName)
_writer.Write(_quoteChar);
JavaScriptUtils.WriteEscapedJavaScriptString(_writer, name, _quoteChar, _quoteName);
_writer.Write(':');
}