Interface IJqGridJsonWriter
Provides an abstraction for a writer that provides a fast, non-cached, forward-only way of generating JSON.
Namespace: Lib.AspNetCore.Mvc.JqGrid.Core.Json
Assembly: Lib.AspNetCore.Mvc.JqGrid.Core.dll
Syntax
public interface IJqGridJsonWriter
Methods
WriteEndArray()
Writes the end of an array.
Declaration
void WriteEndArray()
WriteEndObject()
Writes the end of a JSON object.
Declaration
void WriteEndObject()
WriteProperty(String, Int32)
Writes a name/value pair of a JSON object.
Declaration
void WriteProperty(string name, int value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the property. |
System.Int32 | value | The |
WriteProperty(String, Object)
Writes a name/value pair of a JSON object.
Declaration
void WriteProperty(string name, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the property. |
System.Object | value | The |
WriteProperty(String, String)
Writes a name/value pair of a JSON object.
Declaration
void WriteProperty(string name, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the property. |
System.String | value | The |
WriteStartArray(String)
Writes the beginning of a JSON array.
Declaration
void WriteStartArray(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the property. |
WriteStartObject()
Writes the beginning of a JSON object.
Declaration
void WriteStartObject()