public override void WritePropertyName(string name) { base.WritePropertyName(name); JavaScriptUtil.WriteEscapedJavaScriptString(fWriter, name, fQuoteChar, QuoteName); fWriter.Write(':'); }
public override void WriteValue(string value) { base.WriteValue(value); if (value == null) { WriteValueInternal(JsonConvert.Null, JsonToken.Null); } else { JavaScriptUtil.WriteEscapedJavaScriptString(fWriter, value, fQuoteChar, true); } }