{ "status": false, "status": true, "data": { "contact": [ level=="Tidak"){ $level = "Guru"; } else if($contact->level=="Ya"){ $level = "Panitia"; } else { $level = $contact->level; } ?> { "nama": "nama ?>", "email": "email ?>", "level": "" } ] } }