{"key":"abc/1"}
I want to store the value in two fields instead of one. I can do the following.
[JsonProperty(PropertyName = "key", Required = Required.Always)]
public string Value { get; set; }
However, I want to have two fields but use JsonPropertyto serialize and deserialize them as a combined string. For example, if I define the following fields:
public string ValueScope { get; set; }
public int ValueId { get; set; }
I want to use JsonProperty or any other tag to populate the fields while deserializing. Is it possible to do that, i.e. populate ValueScope as "abc" and ValueId as 1 ?