<PackageReference Include="Newtonsoft.Json" Version="7.0.1" />

JTokenWriter

public class JTokenWriter : JsonWriter
Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.
public JToken CurrentToken { get; }

Gets the JToken at the writer's current position.

public JToken Token { get; }

Gets the token being writen.

public JTokenWriter(JContainer container)

Initializes a new instance of the JTokenWriter class writing to the given JContainer.

public JTokenWriter()

Initializes a new instance of the JTokenWriter class.