Added jackson dependencies and configurations to the project so that the response returns proper json