Im getting a string (simplified) from the backend that should be :
{ "menu": "Reallocate:"}
However it comes to jsp as:
{ "menu": "Reallocate:"}
and i cannot pass this to the:
var data=eval("(" + src + ")");
as it just doesn't like it.. How can i convert this usable format?
I know that:
src = '{ "menu": "Reallocate:"}';
var data=eval("(" + src + ")");
works.
Cheers