I have a vb.net webservice that produces a JSON string that I process using AJAX and JavaScript. Currently I build the string using Newtonsoft.Json and the JSON comes out looking like :
[{"NAME":"Richard","Description":"Richard
and I parse it using
success: function (data) {
var = dataJson = JSON.parse(data.d);
from my Success Function. I started trying JsonConvert.SerializeObject(ds) and it comes out like:
{"Results":[{"NAME":"Richard ","Description":"Richard.
My dataJson = JSON.parse(data.d);
is tripping on the "Results" I understand that I'm sterilizing a dataset on the server but need to know how to read the first results. Something like:
dataJson = JSON.parse(data.d);
var results = dataJson.[0] ?????