I have some pre defined POCO’s using Newtonsoft.Json attributes and converters.
It seems that I have to replace
[JsonProperty("messenger_extensions", NullValueHandling = NullValueHandling.Ignore)]
with
[DataMember(Name = "messenger_extensions")]
Correct? Or is there a way to use the JsonProperty
attributes?
Furthermore, I have
[JsonProperty("attachments", ItemConverterType = typeof(AttachmentConverter))]
Which basically checks a certain value in the json and then returns another type of Attachment in this case.
Is there any way to use this in ServiceStack services?