I have a json object and when it is passing through a request parameter on client side,and server side the json string is breaking from space character.
ex:
{"id":100,"age":15,"name":"sample string"}
when its come to the request.getParameter() showing like this
{"id":100,"age":15,"name":"sample
JAVASCRIPT
var location='MyAction.do?method=myMethod';
var form = '<input type="hidden" name="transactionId" value="'+getSession()+'" /><input type="hidden" name="myInfo" value='+JSON.stringify(myInfo)+' />';
$('<form action="' + location + '" method="POST">' + form + '</form>').appendTo($(document.body)).submit();
JAVA
String myInfo = request.getParameter("myInfo");
This is only happening when info string having space characters.how can I get the full string?
thanks.