Ok, I'm trying to serialize a data table in vb.net:
Dim dt As New System.Data.DataTable
and for the serializer:
Dim js As JavaScriptSerializer = New JavaScriptSerializer()
dim jsonString as string
jsonString=js.serialize(dt)
when it serialize the data table on the last line, it got an error:
An unhandled exception of type 'System.InvalidOperationException' occurred in System.Web.Extensions.dll
Additional information: A circular reference was detected while serializing an object of type 'System.Globalization.CultureInfo'
I even make the simplest datatable with only 1 column and 1 row, but it just won't serialize it,
I know that this kind of question was answered: in here
but I don't know how to implement the answer (make a new class), or maybe there's an even better solution?