I'm using json.net to deserialise some highly structured data - objects with lists of other objects in them. For the most part, this works fine.
But I have come across a situation where the json data we are getting is missing the list "node" complete. As in, its not showing an empty list "node" - it is missing the list "node" completely.
This is causing an error, saying the first int value of the object in the list cant be null.
How can I handle this better? If the list node is missing, I want it to just not create any lines in the deserialised object.
Thanks.