Adding JsonMapper to convert Docuement to json.