your code do not have enough data to give a proper solution.
but in my opinion your problem is with the
DeserializeObject
line
DataTable myObjectDT = JsonConvert.DeserializeObject<datatable>(myDynamicJSON);
the data you deserializing may not be same as
datatable
. check if the object type matches for
myDynamicJSON
and
datatable
. One common mistake is that people try to deserialize collection of object to a single object. please check if it is true in your case.