Пример #1
0
 public static string Dump(object data, bool prettyPrint = false)
 {
     return(Encoder.Encode(data, prettyPrint));
 }
Пример #2
0
 public string Dump(EncodeOptions options = EncodeOptions.Default)
 {
     return(Encoder.Encode(this, options));
 }
Пример #3
0
 /// <summary>
 /// Encodes the given object into a JSON string.
 /// </summary>
 public static string Encode(object data, EncodeOptions options = EncodeOptions.None)
 {
     return(Encoder.Encode(data, options));
 }