Before send event change to pass object as a parameter instead of json stringify