A pre-configured RestSharp serializer / deserializer which is made to support parsing of AnalyzeRe API JSON strings, including complex objects such as derived resources, references, URIs and DateTimes.
More...
|
| AnalyzeReJsonConverter () |
| Create a new AnalyzeRe JsonConverter.
|
|
object | Deserialize (string json, Type deserializeType) |
| Deserializes the rest response to a run-time type as per this converter's configuration.
|
|
T | Deserialize< T > (IRestResponse response) |
| Deserializes the rest response as per this converter's configuration.
|
|
T | Deserialize< T > (string json) |
| Deserializes the JSON string as per this converter's configuration.
|
|
string | Serialize (object obj) |
| Serialize the object as JSON.
|
|
string | Serialize (object obj, bool indented) |
| Serialize the object as JSON.
|
|
|
readonly JsonSerializerSettings | DeserializerSettings = DefaultDeserializerSettings.ShallowCopy() |
| The JsonSerializerSettings settings used for deserializing resources.
|
|
readonly JsonSerializerSettings | SerializerSettings = DefaultSerializerSettings.ShallowCopy() |
| The JsonSerializerSettings settings used for serializing resources.
|
|
|
string | ContentType [get, set] |
| RestSharp.Deserializers.IDeserializer.ContentType.
|
|
CultureInfo | Culture [get, set] |
| RestSharp.Deserializers.IDeserializer.Culture.
|
|
string | DateFormat [get, set] |
| RestSharp.Deserializers.IDeserializer.DateFormat.
|
|
static JsonSerializerSettings | DefaultDeserializerSettings [get] |
| The Newtonsoft.Json.JsonSerializerSettings settings used for deserializing resources.
|
|
static JsonSerializerSettings | DefaultSerializerSettings [get] |
| The Newtonsoft.Json.JsonSerializerSettings settings used for serializing resources.
|
|
string | Namespace [get, set] |
| RestSharp.Deserializers.IDeserializer.Namespace.
|
|
string | RootElement [get, set] |
| RestSharp.Deserializers.IDeserializer.RootElement.
|
|
A pre-configured RestSharp serializer / deserializer which is made to support parsing of AnalyzeRe API JSON strings, including complex objects such as derived resources, references, URIs and DateTimes.
Definition at line 17 of file AnalyzeReJsonConverter.cs.
◆ AnalyzeReJsonConverter()
AnalyzeRe.JsonConverters.AnalyzeReJsonConverter.AnalyzeReJsonConverter |
( |
| ) |
|
|
inline |
◆ Deserialize()
object AnalyzeRe.JsonConverters.AnalyzeReJsonConverter.Deserialize |
( |
string |
json, |
|
|
Type |
deserializeType |
|
) |
| |
|
inline |
Deserializes the rest response to a run-time type as per this converter's configuration.
- Parameters
-
json | The string to deserialize. |
deserializeType | The type to deserialize to. |
- Returns
- A new instance of type T filled in with the deserialized response content.
Definition at line 159 of file AnalyzeReJsonConverter.cs.
◆ Deserialize< T >() [1/2]
Deserializes the rest response as per this converter's configuration.
- Template Parameters
-
T | The type to deserialize to. |
- Parameters
-
response | The response to deserialize. |
- Returns
- A new instance of type T filled in with the deserialized response content.
Definition at line 132 of file AnalyzeReJsonConverter.cs.
◆ Deserialize< T >() [2/2]
Deserializes the JSON string as per this converter's configuration.
- Template Parameters
-
T | The type to deserialize to. |
- Parameters
-
json | The string to deserialize. |
- Returns
- A new instance of type T filled in with the deserialized JSON string.
Definition at line 145 of file AnalyzeReJsonConverter.cs.
◆ Serialize() [1/2]
string AnalyzeRe.JsonConverters.AnalyzeReJsonConverter.Serialize |
( |
object |
obj | ) |
|
|
inline |
Serialize the object as JSON.
- Parameters
-
obj | The object to serialize. |
- Returns
- Serialized JSON of the object.
Definition at line 167 of file AnalyzeReJsonConverter.cs.
◆ Serialize() [2/2]
string AnalyzeRe.JsonConverters.AnalyzeReJsonConverter.Serialize |
( |
object |
obj, |
|
|
bool |
indented |
|
) |
| |
|
inline |
Serialize the object as JSON.
- Parameters
-
obj | The object to serialize. |
indented | Choose whether to use indented formatting or not |
- Returns
- Serialized JSON of the object.
Definition at line 176 of file AnalyzeReJsonConverter.cs.
◆ Default
◆ DeserializerSettings
readonly JsonSerializerSettings AnalyzeRe.JsonConverters.AnalyzeReJsonConverter.DeserializerSettings = DefaultDeserializerSettings.ShallowCopy() |
The JsonSerializerSettings settings used for deserializing resources.
By default, this is instantiated to a copy of the DefaultDeserializerSettings
Definition at line 84 of file AnalyzeReJsonConverter.cs.
◆ SerializerSettings
readonly JsonSerializerSettings AnalyzeRe.JsonConverters.AnalyzeReJsonConverter.SerializerSettings = DefaultSerializerSettings.ShallowCopy() |
The JsonSerializerSettings settings used for serializing resources.
By default, this is instantiated to a copy of the DefaultSerializerSettings
Definition at line 88 of file AnalyzeReJsonConverter.cs.
◆ ContentType
string AnalyzeRe.JsonConverters.AnalyzeReJsonConverter.ContentType |
|
getset |
◆ Culture
CultureInfo AnalyzeRe.JsonConverters.AnalyzeReJsonConverter.Culture |
|
getset |
◆ DateFormat
string AnalyzeRe.JsonConverters.AnalyzeReJsonConverter.DateFormat |
|
getset |
◆ DefaultDeserializerSettings
JsonSerializerSettings AnalyzeRe.JsonConverters.AnalyzeReJsonConverter.DefaultDeserializerSettings |
|
staticget |
The Newtonsoft.Json.JsonSerializerSettings settings used for deserializing resources.
Definition at line 27 of file AnalyzeReJsonConverter.cs.
◆ DefaultSerializerSettings
JsonSerializerSettings AnalyzeRe.JsonConverters.AnalyzeReJsonConverter.DefaultSerializerSettings |
|
staticget |
The Newtonsoft.Json.JsonSerializerSettings settings used for serializing resources.
Definition at line 56 of file AnalyzeReJsonConverter.cs.
◆ Namespace
string AnalyzeRe.JsonConverters.AnalyzeReJsonConverter.Namespace |
|
getset |
◆ RootElement
string AnalyzeRe.JsonConverters.AnalyzeReJsonConverter.RootElement |
|
getset |
The documentation for this class was generated from the following file: