Generating JSON request manually, returned HTML causing issues.

Posted by mrblah on Stack Overflow See other posts from Stack Overflow or by mrblah
Published on 2009-06-11T02:25:34Z Indexed on 2010/06/08 3:02 UTC
Read the original article Hit count: 286

Filed under:
|

Hi,

I am generating my JSON manually, and I even escaped for quotes with a preceding backslash. It is causing me problems.

My HTML returned looks something like:

<div class="blah"><div class="a2">This is just a test!  I hope this work's man!</div></div>


string json = "MY HTML HERE";
json = json.Replace(@"""", @"\""");

Is there more to replace than just the double quotes?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about JSON