Simple string replacement gone wrong
<p>I am trying to post a json string via a form submission ( multi-part encoding ) to an aspx page and send back a response based on the deserialized json string. ( I really need to do this via a form submission. no ajax )</p>

<p>I dunno why this doesn't work, but every time I try a simple string replacement to replace the single quotes with double quotes in the json string. It doesn't seem to be happening. </p>

<p>Here's a summary of what I did.</p>

<p>Here's the JSON string,</p>

<pre><code>[["\n 22.02 13:15 \n ","\n \n \n \n ","\n \n \n \n ","\n \n \n "," \n Vereina\n ","\n \n ","\n 35 000\n ","\n 24.03.11\n ","\n Taiwan \n ","\n \n ","\n \n "]]
</code></pre>

<p>To send it via form data I replace all the " quotes with ' quotes like this,</p>

<p>[['\n 22.02 13:15 \n ','\n \n \n \n ','\n \n \n \n ','\n \n \n ',' \n Vereina\n ','\n \n ','\n 35 000\n ','\n 24.03.11\n ','\n Taiwan \n ','\n \n ','\n \n ']]</p>

<p>On the server side I am replacing the new lines since I don't need them,</p>

<pre><code>[[' 22.02 13:15 ',' ',' ',' ','  Vereina ',' ',' 35 000 ',' 24.03.11 ',' Taiwan  ','  ','  ']]
</code></pre>

<p>Then I use the C#  string Replace method like this .Replace("'","\"") on the above, and what I get is</p>

<pre><code>[[\" 22.02 13:15 \",\" \",\" \",\" \",\"  Vereina \",\" \",\" 35 000 \",\" 24.03.11 \",\" Taiwan  \",\"  \",\"  \"]]
</code></pre>

<p>I am observing this in the quick watch window of MS Visual Studio, also while debugging the code. </p>
