Change emit api - receive json instead of separate parsms