Class ContentJsonConverter
JsonConverter for converting Contentful assets into a simpler Asset structure.
Inheritance
System.Object
ContentJsonConverter
Namespace:Contentful.Core.Configuration
Assembly:cs.temp.dll.dll
Syntax
public class ContentJsonConverter : JsonConverter
Properties
CanWrite
Gets a value indicating whether this JsonConverter can write JSON.
Declaration
public override bool CanWrite { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
CanConvert(Type)
Determines whether this instance can convert the specified object type.
Declaration
public override bool CanConvert(Type objectType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | objectType | The type to convert to. |
Returns
Type | Description |
---|---|
System.Boolean |
ReadJson(JsonReader, Type, Object, JsonSerializer)
Reads the JSON representation of the object.
Declaration
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
JsonReader | reader | The reader to use. |
System.Type | objectType | The object type to serialize into. |
System.Object | existingValue | The current value of the property. |
JsonSerializer | serializer | The serializer to use. |
Returns
Type | Description |
---|---|
System.Object | The deserialized Asset. |
WriteJson(JsonWriter, Object, JsonSerializer)
Writes the JSON representation of the object. NOTE: This method is not implemented and will throw an exception.
Declaration
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
JsonWriter | writer | |
System.Object | value | |
JsonSerializer | serializer |