Share via


VisualizerObjectSource.SerializeAsJson(Stream, Object, Object) Method

Definition

Serializes the specified object as JSON into a stream using the Newtonsoft.Json library.

public static void SerializeAsJson (System.IO.Stream serializationStream, object target, object? serializer = default);
static member SerializeAsJson : System.IO.Stream * obj * obj -> unit
Public Shared Sub SerializeAsJson (serializationStream As Stream, target As Object, Optional serializer As Object = Nothing)

Parameters

serializationStream
Stream

The stream where the object will be serialized to.

target
Object

The object that is going to be serialized.

serializer
Object

[Optional] Argument of type Newtonsoft.Json.JsonSerializer that specifies how the object will be encoded as JSON. If not specified, the object will be serialized with the default NewtonSoft JSON Serializer.

Applies to