I wrote this
if($stmt->execute()){
$user = $stmt->get_result();
while ($obj = $user->fetch_object()) {
echo json_encode($obj) . ",";
}
}
and it returned
{"tabId":1,"tabName":"Main","uId":"1"},{"tabId":2,"tabName":"Photography","uId":"1"},
how to remove the , to make it a valid json?