internal override void ToJson( IJsonContext context, IJsonWriter writer, IJsonMapper <JsonElement> elMapper) { if (_value == null) { writer.WriteRaw(JsonLiterals.Null); } else { writer.EncodeAndWrite(_value); } }
public override void ToJson(IJsonContext context, IJsonWriter writer, char instance) { var charString = instance.ToString(); writer.EncodeAndWrite(charString); }
public override void ToJson(IJsonContext context, IJsonWriter writer, string instance) { writer.EncodeAndWrite(instance); }
public override void ToJson(IJsonContext context, IJsonWriter writer, Guid instance) { writer.EncodeAndWrite(instance.ToString("D")); }