Class JsonWriterExtensions
Extension methods for the
Inheritance
System.Object
JsonWriterExtensions
Namespace: Cuemon.Serialization.Json
Assembly: Cuemon.Serialization.Json.dll
Syntax
public static class JsonWriterExtensions : object
Methods
| Improve this DocWriteObject(JsonWriter, Object, JsonSerializerSettings)
Serializes the specified value and writes the JSON structure using the specified writer.
Declaration
public static void WriteObject(this JsonWriter writer, object value, JsonSerializerSettings settings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonWriter | writer | The |
| System.Object | value | The |
| JsonSerializerSettings | settings | The settings to associate with the specified |
WritePropertyName(JsonWriter, String, Func<Boolean>, Boolean)
Writes the property name of a name/value pair of a JSON object.
Declaration
public static void WritePropertyName(this JsonWriter writer, string name, Func<bool> useCamelCaseFactory, bool escape = false)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonWriter | writer | The |
| System.String | name | The name of the property. |
| Func<System.Boolean> | useCamelCaseFactory | The function delegate that will resolve whether the |
| System.Boolean | escape | A flag to indicate whether the text should be escaped when it is written as a JSON property name. |