Escape Characters are in the responseText

45 views
Skip to first unread message

itrahulsoni

unread,
Nov 6, 2007, 10:15:23 AM11/6/07
to json-taglib
Hi,

First of All thanks to the James Wiltshire for yr reply

I have Created Example using JSON-taglib and JSP and it works fine.
But now I have the different
issue that is I have created the JavaBean and in the jsp page using
usebean I have used the object of the class in the <json:object> tag
and <json:property> tag and once i get the data in the
responseText it will contain whitespace and newline characters. I have
also done that out.clear() before writing it to the <json:object> tag
and also used the prettyprinting="true" and also check it with
prettyprinting="false" also removed the extra whitespace and newline
from the jsp page still I get some (\) in the responseText like this
example "{\"Subject\":\"test\",\"To\":\"ToMessage\"}" now I want to
parse the String using the normal Javascript objcet like this one
Test.Subject and use that one.

So i dont know how to do that.

Regards,
Rahul Soni

Reply all
Reply to author
Forward
0 new messages