this is my php script
$con = mysqli_connect(HOST,USER,PASS,DB);
if($_SERVER['REQUEST_METHOD']=='GET')
{
$qry_check="SELECT * FROM `tb_user`";
$stmt = $con->prepare($qry_check);
if ($stmt->execute()){
echo "Success";
}}
else
echo "Fail";
}
?>
when i run this query on my mysqli online server i get result which i have attached below i need this result as a json array when i call this json url, hanks in advance,enter image description here