moved logic to JsonToBodyConverter