Adding toJSON to job