use resttemplate instead of objectmapper