Constructors
-
JToken
Writer() Initializes a new instance of the JTokenWriter class. -
JToken
Writer(JContainer) Initializes a new instance of the JTokenWriter class writing to the given JContainer.
Methods
- Close() virtual Closes this writer. If AutoCompleteOnClose is set to true, the JSON is auto-completed.
- Flush() virtual Flushes whatever is in the buffer to the underlying JContainer.
-
Write
Comment(String) virtual Writes a comment /*...*/ containing the specified text. -
Write
End(Json protectedvirtual Writes the end.Token) -
Write
Null() virtual Writes a null value. -
Write
Property virtual Writes the property name of a name/value pair on a JSON object.Name(String) -
Write
Raw(String) virtual Writes raw JSON. -
Write
Start virtual Writes the beginning of a JSON array.Array() -
Write
Start virtual Writes the start of a constructor with the given name.Constructor(String) -
Write
Start virtual Writes the beginning of a JSON object.Object() -
Write
Undefined() virtual Writes an undefined value. -
Write
Value(Boolean) virtual Writes a Boolean value. -
Write
Value(Byte) virtual Writes a Byte value. -
Write
Value(Byte[]) virtual Writes a Byte[] value. -
Write
Value(Char) virtual Writes a Char value. -
Write
Value(Date virtual Writes a DateTime value.Time) -
Write
Value(Date virtual Writes a DateTimeOffset value.Time Offset) -
Write
Value(Decimal) virtual Writes a Decimal value. -
Write
Value(Double) virtual Writes a Double value. -
Write
Value(Guid) virtual Writes a Guid value. -
Write
Value(Int16) virtual Writes a Int16 value. -
Write
Value(Int32) virtual Writes a Int32 value. -
Write
Value(Int64) virtual Writes a Int64 value. -
Write
Value(Object) virtual Writes a Object value. An error will be raised if the value cannot be written as a single JSON token. -
Write
Value(SByte) virtual Writes a SByte value. -
Write
Value(Single) virtual Writes a Single value. -
Write
Value(String) virtual Writes a String value. -
Write
Value(Time virtual Writes a TimeSpan value.Span) -
Write
Value(UInt16) virtual Writes a UInt16 value. -
Write
Value(UInt32) virtual Writes a UInt32 value. -
Write
Value(UInt64) virtual Writes a UInt64 value. -
Write
Value(Uri) virtual Writes a Uri value.
Properties
-
Current
Token Gets the JToken at the writer's current position. - Token Gets the token being written.