/// <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); }
/// <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); }
/// <summary> /// Serializes object into JSON string /// </summary> public static string ToJSON(this object root, Serialization.JSON.JSONWritingOptions options = null) { return(JSONWriter.Write(root, options)); }