Using the below JSON example and Newtsoft, I am trying to figure out what the class definitions should be to deserialize it. The memo is an array of braums. But braums has different key/values. I have this example https://dotnetfiddle.net/cIU3jS with classes. If I deserialize with memo as an array of string, then deserialize the string with the correct class it works as in the code example TestMemo(). If I try to let the array be of the class it does not. Do I have to do this in a two-step process? What is the best way, create a function that returns the correct class? Is there a way to have a "post" process to the deserialization that I can do the memo after it been split out?
{
"x": "testx",
"y": "testy",
"memo": [
"{'braums': {'printing_data': {'customerFirstName': 'xxxxxx', 'orderNumber': 4495, 'customerLastName': 'xxxxxx'}}}",
"{'braums': {'cancellation_reasons': {'who': 'xxxxxxx', 'when': '11/18/2020 8:02 PM', 'why': 'called to cancel'}}}"
],
"z": "testz"
}
EDIT: Just notice the mistake in the classes. The point of them did not change.