Source/NFX/Serialization/JSON/JSONWriter.cs
/// <summary>
/// Writes JSON data to the file
/// </summary>
Writes JSON data to the file
Writes JSON data to the file
public static void WriteToFile(object data, string  fileName, JSONWritingOptions options = null, Encoding encoding = null)
        {
            using(var fs = new FileStream(fileName, FileMode.Create, FileAccess.Write))
               Write(data, fs, options, encoding);
        }
public static void WriteToFile ( object data , string fileName , JSONWritingOptions options = null , Encoding encoding = null ) { using ( var fs = new FileStream ( fileName , FileMode . Create , FileAccess . Write ) ) Write ( data , fs , options , encoding ) ; }
Writes JSON data to the file
Writes JSON data to the file
data
object
fileName
string
options
JSONWritingOptions
encoding
Encoding