I use amazonaws library[com.amazonaws.util.json] (java) for generate json . I use something as follows
private static final String boldHtmlOpenTag = "<b>";
private static final String boldHtmlCloseTag = "</b>";
private static final String italicsHtmlOpenTag = "<i>";
private static final String italicsHtmlCloseTag = "</i>";
String result = boldHtmlOpenTag + "hello" + boldHtmlCloseTag;
jsonobj.put("test",result);
I get the response as {"test" : <b> hello<\/b>}.
I need output as without the \.
Thanks in advance.
stringisn't a known type, and if you don't add the;at the end of the line you will not finish the sentence.