[This is preliminary documentation and is subject to change.]
Serializes object into JSON format using provided stream and optional encoding
Namespace: NFX.Serialization.JSONAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public static void ToJSON(
this Object root,
Stream stream,
JSONWritingOptions options = null,
Encoding encoding = null
)
public static void ToJSON(
this Object root,
Stream stream,
JSONWritingOptions options = null,
Encoding encoding = null
)
<ExtensionAttribute>
Public Shared Sub ToJSON (
root As Object,
stream As Stream,
Optional options As JSONWritingOptions = Nothing,
Optional encoding As Encoding = Nothing
)
<ExtensionAttribute>
Public Shared Sub ToJSON (
root As Object,
stream As Stream,
Optional options As JSONWritingOptions = Nothing,
Optional encoding As Encoding = Nothing
)
public:
[ExtensionAttribute]
static void ToJSON(
Object^ root,
Stream^ stream,
JSONWritingOptions^ options = nullptr,
Encoding^ encoding = nullptr
)
public:
[ExtensionAttribute]
static void ToJSON(
Object^ root,
Stream^ stream,
JSONWritingOptions^ options = nullptr,
Encoding^ encoding = nullptr
)
static member ToJSON :
root : Object *
stream : Stream *
?options : JSONWritingOptions *
?encoding : Encoding
(* Defaults:
let _options = defaultArg options null
let _encoding = defaultArg encoding null
*)
-> unit
static member ToJSON :
root : Object *
stream : Stream *
?options : JSONWritingOptions *
?encoding : Encoding
(* Defaults:
let _options = defaultArg options null
let _encoding = defaultArg encoding null
*)
-> unit
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Object. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).