[]
        
(Showing Draft Content)

C1.JsonNet.JsonWriter

JsonWriter Class

Serialize an object to a json text.

Inheritance
JsonWriter
Namespace: C1.JsonNet
Assembly: C1.Web.Mvc.dll
Syntax
public sealed class JsonWriter : BaseWriter, IDisposable, IJsonOperation

Constructors

Name Description
JsonWriter(TextWriter, JsonSetting)

Initializes a new instance of the JsonWriter class.

Properties

Name Description
JsonSetting

Gets the json settings.

Methods

Name Description
EndScope()

End the scope.

StartArrayScope(object)

Start the scope for an array.

StartObjectScope(object)

Start the scope for a new object.

WriteName(string)

Serialize a name for a property.

WriteRawName(string)

Serialize a name for a property.

WriteRawValue(string)

Serialize a text.

WriteValue(object, bool)

Serialize the specified object.