I wonder, if there is a way to keep the raw content of one specific property in my JSON object.
public class MyClass {
public int RegularNumber { get; set; }
public string OtherStuff { get; set; }
public RawJsonString SomeNestedData { get; set; }
}
The background is, that the client side SomeNestedData
object is an irregular array of strings and arrays. I can't find a proper c# type that would fit and deserializing the property on the server isn't even necessary, because it's getting saved to a database as raw JSON.
So is there some way to achieve something like a RawJsonString
class? Or should I better use IEnumerable<object>
?