1

Closed

Convert unstandard JSON values to vb.net datatable

description

Hi,

I'm trying to convert a JSON string to a .NET datatable.

I saw some examples on the web, and tried this:

Dim table As New DataTable

table = DirectCast(Newtonsoft.Json.JsonConvert.DeserializeObject(reader.ReadToEnd, (GetType(DataTable))), DataTable)

But nothing is created on the datatable.

The reader.readtoend object, returns the value on this website link:
http://www.nif.pt/?json=1&q=500021481

What am I doing wrong?

Thanks in advanced,
Jorge Bastos,
Closed Jul 18, 2013 at 1:35 AM by JamesNK
Not a bug. Try stackoverflow

comments

jasb wrote Jul 18, 2013 at 9:11 AM

Hi,

I didn't said it was a bug, I was just asking for an help :)