In This video I have shown that How to get JSON Response from mysql database using PHP. In php a one function is there to convert data into JSON Format
json_encode()
using json_encode() method we can convert php array into json array
GitHut Link :
First of all you have to make a Database connnection using php then try to fetxh each row and then store into a array and then convert that array into json object and then using print or echo method give response message
-~-~~-~~~-~~-~-
Please watch: “MySQL Database connection in java 12 using eclipse 2019”
-~-~~-~~~-~~-~-