Reworked json api for employees.