'Convert person details and current check-in status into
a JSON-serializable dict for Ajax-actions
@param person: the person record
@param status: the status dict (from status())'

@classmethod
def ajax_data(cls, person, status):

    T = current.T
    person_details = cls.person_details(person)
    output = {'d': s3_str(person_details), 'i': (True if status.get('check_in_allowed') else False), 'o': (True if status.get('check_out_allowed') else False), 's': status.get('status')}
    profile_picture = cls.profile_picture(person)
    if profile_picture:
        output['p'] = profile_picture
    info = status.get('info')
    if info:
        output['a'] = s3_str(info)
    return output
