How To Convert Database Table Data Into Json Format In Javascript

How To Convert Database Table Data Into Json Format In Javascript