title: Displaying MySQL data as JSON in ASP.NET, Restful web service?
body: <p>I Followed <a href="http://www.packtpub.com/article/displaying-mysql-data-on-asp.net-web-page" rel="nofollow noreferrer">This</a> to Read MySQL DataBase and Display Tables in ASP.net.</p>
  
  <p>But I want to Display Those Tables as the Part of JSON data,
  For Example :
  This is Employ Table,
  <img src="https://i.stack.imgur.com/aVkPf.jpg" alt="enter image description here"></p>
  
  <p>And I wnat to Display this Data in the form  of JSON
  Like :</p>
  
  <pre><code>[
  {
      "id" : 1,
      "first_name" : "John",
      "last_name" : "Doe"
  },
  {
      "id" : 2,
      "first_name" : "Bob",
      "last_name" : "Smith"
  },
  {
      "id" : 3,
      "first_name" : "Jane",
      "last_name" : "Doe"
  }
  ]
  </code></pre>
  
  <p>Here I want to Use the MySQL Tables as JSON Using ASP.net/Restfulweb services,So that it can be used in the part of Android and iPhone. </p>
  
  <p>Any Suggestion please,</p>