I have trouble to convert an c# object so an json array.
public class ChartValue
{
public DateTime Timestamp { get; set; }
public float Value { get; set; }
}
This object should be serialized like this for example:
[
"2020-03-03T13:27:45",
52.2
]
I need to stick to this json structure so adjusting is not possible. For serializian the Newtonsoft.json class is used.
Using a string array failed for me because the value is then "52.2" which is not accepted. Any ideas how to adjust the serialization or to create a "multitype" array
thanks for help!