Building a web site we can use many different technologies. This example show how integrate AJAX with data in JSON format. Data is build from  ASP.NET page (code in C#) reading from remote SQL Server.
To see the example at work click here:
Javascript source code is adapted by me from article by Alessandro Lacava (
To download the project:

When security is a concern it is better to use a JSON parser:
Javascript parser source code:
It’s also a good idea to use a "JavaScript Verifier":