示例#1
0
 /// <summary>
 ///  Serializes object into JSON format using provided TextWriter
 /// </summary>
 public static void ToJSON(this object root, TextWriter wri, Serialization.JSON.JSONWritingOptions options = null)
 {
     JSONWriter.Write(root, wri, options);
 }
示例#2
0
 /// <summary>
 ///  Serializes object into JSON format using provided stream and optional encoding
 /// </summary>
 public static void ToJSON(this object root, Stream stream, Serialization.JSON.JSONWritingOptions options = null, Encoding encoding = null)
 {
     JSONWriter.Write(root, stream, options, encoding);
 }
示例#3
0
 /// <summary>
 ///  Serializes object into JSON string
 /// </summary>
 public static string ToJSON(this object root, Serialization.JSON.JSONWritingOptions options = null)
 {
     return(JSONWriter.Write(root, options));
 }