Fix Json response from rsvp function