How to display my json encoded data from mysql

Here is the code i used to get my data in json encoded

<?php include 'db.php'; $sql="SELECT * FROM Outputs"; //$result=mysqli($conn,$sql); $result = $conn->query($sql); //create an array $esparray = array(); while($row =mysqli_fetch_assoc($result)) { $esparray[] = $row; } echo json_encode($esparray); //close the db connection mysqli_close($conn); ?>

and my results is here


I want to display name and status like

Name: AAA
Status: 1
Name: BBB
Status: 0
Name: CCC
Status: 1
Name: DDD
Status: 1

How can i do that? I am new in kodular.