class Request {
private String requestid;
private String contenttype;
private String service;
private String requestjson;
}
making this object to json using Object mapper but the mapper is returning me
"requestjson\":\"{\\\"username\\\":\\\"farhan\\\",\\\"password\\\":\\\"farhaan\\\"}\"}"}
How can I remove this extra
\\\
I tried
jsonOutput.replaceAll("\"",Character.toString ((char) 34));