[This is preliminary documentation and is subject to change.]
Serializes object into JSON format using provided TextWriter
Namespace: NFX.Serialization.JSONAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public static void ToJSON(
this Object root,
TextWriter wri,
JSONWritingOptions options = null
)
public static void ToJSON(
this Object root,
TextWriter wri,
JSONWritingOptions options = null
)
<ExtensionAttribute>
Public Shared Sub ToJSON (
root As Object,
wri As TextWriter,
Optional options As JSONWritingOptions = Nothing
)
<ExtensionAttribute>
Public Shared Sub ToJSON (
root As Object,
wri As TextWriter,
Optional options As JSONWritingOptions = Nothing
)
public:
[ExtensionAttribute]
static void ToJSON(
Object^ root,
TextWriter^ wri,
JSONWritingOptions^ options = nullptr
)
public:
[ExtensionAttribute]
static void ToJSON(
Object^ root,
TextWriter^ wri,
JSONWritingOptions^ options = nullptr
)
static member ToJSON :
root : Object *
wri : TextWriter *
?options : JSONWritingOptions
(* Defaults:
let _options = defaultArg options null
*)
-> unit
static member ToJSON :
root : Object *
wri : TextWriter *
?options : JSONWritingOptions
(* Defaults:
let _options = defaultArg options 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).