public void Print(IPrintContext context) { if (context.Format == PrintFormat.YAML || !mightNeedQuoting) { context.Write(value); } else { context.WriteQuoted(value); } }
private void PrintJson(IPrintContext context) { context.WriteQuoted(Name); context.Write(": "); if (value is ObjectToken || value is SequenceToken) { context.WriteLine(); } value.Print(context); }