tags:

views:

59

answers:

2

I am trying to expose some data, user names, as json format on my server. I want to use jQuery.getJSOn() method to query data. I can get my data converted to json with newtonsoft.dll on server and save it in a file. But as far as I know it is not queryable. I want something like

http://search.twitter.com/search.json?callback=?&q=abc

Can anyone help me out to expose my data ion the above format.

+2  A: 
mike clagg
My json file on server is of the format:"[{\"ContactID\":1,\"Name\":\"Gustavo Achong\"},{\"ContactID\":2,\"Name\":\"Catherine Abel\"}.......]I am able to get all data from json file. I want specific data. Say I want only users whose names start with "A". My json file has all names. My code is like$.getJSON("datanew.json", function(data) { var newData = eval(data); $.each(newData, function(i, item) { alert(item.Name); if (i == 5) return false; }); });
Ashish
A: 

This should help.

Ismail