JSON failing to parse when strings contain HTML markup
<p>Why does this ajax fail when html tags are added to the json, if the <code>&lt;br /&gt;</code> is not there then is works. The only work around that I can think of is by encoding the text.</p>

<p>Do you know why or /and have any other suggestions.</p>

<p>Thanks</p>

<pre><code> $.ajax({
            type: "POST",
            url: "/url",
            //data: { "myText" : '[{ "a": "test1", "b": "test2"}]' },//works
            data: { "myText": '[{ "a": "&lt;br /&gt;dfgdfgdfgdfgdgd", "b": "test2"}]' },//causes error
            dataType: 'json',
            success: function (data) {
                        alert("pass");
            },
            error: function () {
                        alert("error");

            }
        });
</code></pre>
