JsonWriter Class

Json.NET

Json.NET - Quick Starts & API Documentation JsonWriter Class
NamespacesNewtonsoft.JsonJsonWriter
Represents a writer that provides a fast, non-cached, forward-only way of generating Json data.
Declaration Syntax
C# Visual Basic Visual C++
public abstract class JsonWriter : IDisposable
Public MustInherit Class JsonWriter _
	Implements IDisposable
public ref class JsonWriter abstract : IDisposable
Members
All Members Constructors Methods Properties



Icon Member Description
JsonWriter()()()()
Creates an instance of the JsonWriter class.

Close()()()()
Closes this stream and the underlying stream.

CloseOutput
Gets or sets a value indicating whether the underlying stream or TextReader should be closed when the writer is closed.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Flush()()()()
Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.

Formatting
Indicates how the output is formatted.

GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Top
Gets the top.

ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
WriteComment(String)
Writes out a comment
CopyC#
/*...*/
containing the specified text.

WriteEnd()()()()
Writes the end of the current Json object or array.

WriteEnd(JsonToken)
Writes the specified end token.

WriteEndArray()()()()
Writes the end of an array.

WriteEndConstructor()()()()
Writes the end constructor.

WriteEndObject()()()()
Writes the end of a Json object.

WriteIndent()()()()
Writes indent characters.

WriteIndentSpace()()()()
Writes an indent space.

WriteNull()()()()
Writes a null value.

WritePropertyName(String)
Writes the property name of a name/value pair on a Json object.

WriteRaw(String)
Writes raw JSON without changing the writer's state.

WriteRawValue(String)
Writes raw JSON where a value is expected and updates the writer's state.

WriteStartArray()()()()
Writes the beginning of a Json array.

WriteStartConstructor(String)
Writes the start of a constructor with the given name.

WriteStartObject()()()()
Writes the beginning of a Json object.

WriteState
Gets the state of the writer.

WriteToken(JsonReader)
Writes the current JsonReader token.

WriteUndefined()()()()
Writes an undefined value.

WriteValue(String)
Writes a String value.

WriteValue(Int32)
Writes a Int32 value.

WriteValue(UInt32)
Writes a UInt32 value.

WriteValue(Int64)
Writes a Int64 value.

WriteValue(UInt64)
Writes a UInt64 value.

WriteValue(Single)
Writes a Single value.

WriteValue(Double)
Writes a Double value.

WriteValue(Boolean)
Writes a Boolean value.

WriteValue(Int16)
Writes a Int16 value.

WriteValue(UInt16)
Writes a UInt16 value.

WriteValue(Char)
Writes a Char value.

WriteValue(Byte)
Writes a Byte value.

WriteValue(SByte)
Writes a SByte value.

WriteValue(Decimal)
Writes a Decimal value.

WriteValue(DateTime)
Writes a DateTime value.

WriteValue(DateTimeOffset)
Writes a DateTimeOffset value.

WriteValue(Nullable<(Of <<'(Int32>)>>))
Writes a Nullable<(Of <(<'T>)>)> value.

WriteValue(Nullable<(Of <<'(UInt32>)>>))
Writes a Nullable<(Of <(<'T>)>)> value.

WriteValue(Nullable<(Of <<'(Int64>)>>))
Writes a Nullable<(Of <(<'T>)>)> value.

WriteValue(Nullable<(Of <<'(UInt64>)>>))
Writes a Nullable<(Of <(<'T>)>)> value.

WriteValue(Nullable<(Of <<'(Single>)>>))
Writes a Nullable<(Of <(<'T>)>)> value.

WriteValue(Nullable<(Of <<'(Double>)>>))
Writes a Nullable<(Of <(<'T>)>)> value.

WriteValue(Nullable<(Of <<'(Boolean>)>>))
Writes a Nullable<(Of <(<'T>)>)> value.

WriteValue(Nullable<(Of <<'(Int16>)>>))
Writes a Nullable<(Of <(<'T>)>)> value.

WriteValue(Nullable<(Of <<'(UInt16>)>>))
Writes a Nullable<(Of <(<'T>)>)> value.

WriteValue(Nullable<(Of <<'(Char>)>>))
Writes a Nullable<(Of <(<'T>)>)> value.

WriteValue(Nullable<(Of <<'(Byte>)>>))
Writes a Nullable<(Of <(<'T>)>)> value.

WriteValue(Nullable<(Of <<'(SByte>)>>))
Writes a Nullable<(Of <(<'T>)>)> value.

WriteValue(Nullable<(Of <<'(Decimal>)>>))
Writes a Nullable<(Of <(<'T>)>)> value.

WriteValue(Nullable<(Of <<'(DateTime>)>>))
Writes a Nullable<(Of <(<'T>)>)> value.

WriteValue(Nullable<(Of <<'(DateTimeOffset>)>>))
Writes a Nullable<(Of <(<'T>)>)> value.

WriteValue(array<Byte>[]()[][])
Writes a array<Byte>[]()[][] value.

WriteValue(Object)
Writes a Object value. An error will raised if the value cannot be written as a single JSON token.

WriteValueDelimiter()()()()
Writes the JSON value delimiter.

WriteWhitespace(String)
Writes out the given white space.

Inheritance Hierarchy

Assembly: Newtonsoft.Json (Module: Newtonsoft.Json) Version: 4.0.2.0 (4.0.2.13623)