private WriteValueInternal ( string value, JsonToken token ) : void | ||
value | string | |
token | JsonToken | |
return | void |
private void WriteValueInternal(string value, JsonToken token)
{
var property = string.Join(".", this.path.Reverse());
if (!property.Equals(this.DefaultProperty, StringComparison.OrdinalIgnoreCase))
{
this.writer.Write(property);
this.writer.Write(':');
}
this.writer.Write(value);
if (!this.isArray)
this.path.Pop();
}