I could serialize the JsonPatchDocument model by using JsonConvert.SerializeObject(), but the type of result is string, how can I convert it to normal array type? Or how to get JsonPatchDocument object straight to array?
var pathSerialized = JsonConvert.SerializeObject(patch);
Console.WriteLine(pathSerialized);
// Result as string:
// "[{"value":"2018-08-30","path":"/openTo","op":"replace"},{"value":"2018-04-01","path":"/openFrom","op":"replace"}]"
SerializeObject... it provides you with a string representation of whatever you feed it. If you want those json-objects in a separate array, you have to serialize them each on their own or did i miss something?JsonPatchDocument?JsonPatchDocument does not contain definition of 'path'. Do you have suggestions?