Saving JSON to DataTable – Asp.net
I need to save data retrieved from API to a DataTable. JSON which is returned from API can't be deserialized directly to DataTable using this code: DataTable dt = (DataTable)JsonConvert.DeserializeObject(json, (typeof(DataTable))); I got an error: Unexpected JSON token when reading…