title: How to write the WCF Service program which connect to database and get the data in json format
body: <p>I m new to Web search. I dont know how to write the program in web service please help me out 
  in program i want to connect the web service to database then from there i am getting the data in json format </p>
  
  <p>in client side i m using jquery mobile framework,jquery Ajax</p>
  
  <p>suppose in database</p>
  
  <p>id   title</p>
  
  <p>1    asd</p>
  
  <p>2    asw</p>