I am using Android SpringRest with Jakson. Currently I am using:
restTemplate.postForObject(baseURL + url,
postCarDetail,
ReplyToAdResponse.class,
auth_token);
Now I want to check if everything in the postCarDetail
object is in the correct format. How can I convert this postCarDetail
into a JSON string?