Source/NFX/Serialization/JSON/JSONWriter.cs
/// <summary>
/// Writes JSON data to the byte[]
/// </summary>
Writes JSON data to the byte[]
Writes JSON data to the byte []
public static byte[] WriteToBuffer(object data, JSONWritingOptions options = null, Encoding encoding = null)
        {
            using(var ms = new MemoryStream())
            {
              Write(data, ms, options, encoding);
              return ms.ToArray();
            }
        }
public static byte [ ] WriteToBuffer ( object data , JSONWritingOptions options = null , Encoding encoding = null ) { using ( var ms = new MemoryStream ( ) ) { Write ( data , ms , options , encoding ) ; return ms . ToArray ( ) ; } }
Writes JSON data to the byte[]
Writes JSON data to the byte []
data
object
options
JSONWritingOptions
encoding
Encoding