Modify userinfo.php response to json.