Provides access to members that control the sequential writing of JSON.
Members
Name | Description | |
---|---|---|
![]() |
EndArray | Ends an array. |
![]() |
EndObject | Ends writing of an object. |
![]() |
GetStringBuffer | Obtains copy of string buffer. Encoding is UTF8. |
![]() |
SetFormatted | Writes 'pretty' formatting on or off. |
![]() |
SetIndent | Writes indent for 'pretty' formatting. Default is 2. |
![]() |
StartArray | Starts an array. |
![]() |
StartObject | Starts writing an object. |
![]() |
Stream | Obtains underlying stream. If WriteTo() is not called yet, will return NULL. Also will return NULL if WriteToString() was called. |
![]() |
WriteBinary | Writes a byte array. |
![]() |
WriteBinaryVal | Writes a byte array. |
![]() |
WriteBoolean | Writes a boolean. |
![]() |
WriteBooleanVal | Writes a boolean in array. |
![]() |
WriteByte | Writes a byte. |
![]() |
WriteByteVal | Writes a byte in array. |
![]() |
WriteDate | Writes a date. |
![]() |
WriteDateVal | Writes a date in array. |
![]() |
WriteDouble | Writes a double. |
![]() |
WriteDoubleVal | Writes a double in array. |
![]() |
WriteFloat | Writes a float. |
![]() |
WriteFloatVal | Writes a float in array. |
![]() |
WriteInteger | Writes an integer. |
![]() |
WriteIntegerVal | Writes an integer in array. |
![]() |
WriteNull | Writes null property. |
![]() |
WriteNullVal | Writes null value in array. |
![]() |
WriteShort | Writes a short. |
![]() |
WriteShortVal | Writes a short int in array. |
![]() |
WriteString | Writes a string property. |
![]() |
WriteStringVal | Writes a string in array. |
![]() |
WriteTo | Specifies output JSON stream. |
![]() |
WriteToString | Redirects writing to internal string buffer. |
![]() |
WriteVariant | Writes a variant valued property. |
![]() |
WriteVariantVal | Writes a variant in array. |
IJSONWriter.EndArray Method
Ends an array.
Public Sub EndArray ( _
)
public void EndArray (
);
IJSONWriter.EndObject Method
Ends writing of an object.
Public Sub EndObject ( _
)
public void EndObject (
);
IJSONWriter.GetStringBuffer Method
Obtains copy of string buffer. Encoding is UTF8.
Public Function GetStringBuffer ( _
) As Byte[]
public Byte[] GetStringBuffer (
);
IJSONWriter.SetFormatted Method
Writes 'pretty' formatting on or off.
Public Sub SetFormatted ( _
ByVal Value As Boolean _
)
public void SetFormatted (
bool Value
);
IJSONWriter.SetIndent Method
Writes indent for 'pretty' formatting. Default is 2.
Public Sub SetIndent ( _
ByVal Value As Integer _
)
public void SetIndent (
int Value
);
IJSONWriter.StartArray Method
Starts an array.
Public Sub StartArray ( _
ByVal Name As String _
)
public void StartArray (
string Name
);
IJSONWriter.StartObject Method
Starts writing an object.
Public Sub StartObject ( _
ByVal Name As String _
)
public void StartObject (
string Name
);
IJSONWriter.Stream Property
Obtains underlying stream. If WriteTo() is not called yet, will return NULL. Also will return NULL if WriteToString() was called.
Public ReadOnly Property Stream As IStream
public IStream Stream {get;}
IJSONWriter.WriteBinary Method
Writes a byte array.
Public Sub WriteBinary ( _
ByVal Name As String, _
ByRef Value As Byte[]& _
)
public void WriteBinary (
string Name,
ref Byte[]& Value
);
IJSONWriter.WriteBinaryVal Method
Writes a byte array.
Public Sub WriteBinaryVal ( _
ByRef Value As Byte[]& _
)
public void WriteBinaryVal (
ref Byte[]& Value
);
IJSONWriter.WriteBoolean Method
Writes a boolean.
Public Sub WriteBoolean ( _
ByVal Name As String, _
ByVal Value As Boolean _
)
public void WriteBoolean (
string Name,
bool Value
);
IJSONWriter.WriteBooleanVal Method
Writes a boolean in array.
Public Sub WriteBooleanVal ( _
ByVal Value As Boolean _
)
public void WriteBooleanVal (
bool Value
);
IJSONWriter.WriteByte Method
Writes a byte.
Public Sub WriteByte ( _
ByVal Name As String, _
ByVal Value As Byte _
)
public void WriteByte (
string Name,
byte Value
);
IJSONWriter.WriteByteVal Method
Writes a byte in array.
Public Sub WriteByteVal ( _
ByVal Value As Byte _
)
public void WriteByteVal (
byte Value
);
IJSONWriter.WriteDate Method
Writes a date.
Public Sub WriteDate ( _
ByVal Name As String, _
ByVal Value As DateTime, _
ByVal asString As Boolean _
)
public void WriteDate (
string Name,
DateTime Value,
bool asString
);
IJSONWriter.WriteDateVal Method
Writes a date in array.
Public Sub WriteDateVal ( _
ByVal Value As DateTime, _
ByVal asString As Boolean _
)
public void WriteDateVal (
DateTime Value,
bool asString
);
IJSONWriter.WriteDouble Method
Writes a double.
Public Sub WriteDouble ( _
ByVal Name As String, _
ByVal Value As Double _
)
public void WriteDouble (
string Name,
double Value
);
IJSONWriter.WriteDoubleVal Method
Writes a double in array.
Public Sub WriteDoubleVal ( _
ByVal Value As Double _
)
public void WriteDoubleVal (
double Value
);
IJSONWriter.WriteFloat Method
Writes a float.
Public Sub WriteFloat ( _
ByVal Name As String, _
ByVal Value As Single _
)
public void WriteFloat (
string Name,
float Value
);
IJSONWriter.WriteFloatVal Method
Writes a float in array.
Public Sub WriteFloatVal ( _
ByVal Value As Single _
)
public void WriteFloatVal (
float Value
);
IJSONWriter.WriteInteger Method
Writes an integer.
Public Sub WriteInteger ( _
ByVal Name As String, _
ByVal Value As Integer _
)
public void WriteInteger (
string Name,
int Value
);
IJSONWriter.WriteIntegerVal Method
Writes an integer in array.
Public Sub WriteIntegerVal ( _
ByVal Value As Integer _
)
public void WriteIntegerVal (
int Value
);
IJSONWriter.WriteNull Method
Writes null property.
Public Sub WriteNull ( _
ByVal Name As String _
)
public void WriteNull (
string Name
);
IJSONWriter.WriteNullVal Method
Writes null value in array.
Public Sub WriteNullVal ( _
)
public void WriteNullVal (
);
IJSONWriter.WriteShort Method
Writes a short.
Public Sub WriteShort ( _
ByVal Name As String, _
ByVal Value As Short _
)
public void WriteShort (
string Name,
short Value
);
IJSONWriter.WriteShortVal Method
Writes a short int in array.
Public Sub WriteShortVal ( _
ByVal Value As Short _
)
public void WriteShortVal (
short Value
);
IJSONWriter.WriteString Method
Writes a string property.
Public Sub WriteString ( _
ByVal Name As String, _
ByVal Value As String _
)
public void WriteString (
string Name,
string Value
);
IJSONWriter.WriteStringVal Method
Writes a string in array.
Public Sub WriteStringVal ( _
ByVal Value As String _
)
public void WriteStringVal (
string Value
);
IJSONWriter.WriteTo Method
Specifies output JSON stream.
Public Sub WriteTo ( _
ByVal outputStream As IStream _
)
public void WriteTo (
IStream outputStream
);
IJSONWriter.WriteToString Method
Redirects writing to internal string buffer.
Public Sub WriteToString ( _
)
public void WriteToString (
);
IJSONWriter.WriteVariant Method
Writes a variant valued property.
Public Sub WriteVariant ( _
ByVal Name As String, _
ByVal Value As Object _
)
public void WriteVariant (
string Name,
object Value
);
IJSONWriter.WriteVariantVal Method
Writes a variant in array.
Public Sub WriteVariantVal ( _
ByVal Value As Object _
)
public void WriteVariantVal (
object Value
);
Classes that implement IJSONWriter
Classes | Description |
---|---|
JSONWriter | A sequential JSON Writer. |