Storing data Object coming from a response of jQuery ajax call
<p>I am calling a web method from <strong>asp.net 1.1</strong> site and getting a response.</p>

<p>I use this object to populate some data, Now I want to store this object so that I can also save this data in database while saving click event.</p>

<p>How can I achieve this.</p>

<pre><code> $(document).ready(function () {
            $("#Ok").click(function () {
                $.ajax({
                    type: "POST",
                    url: "/Service.svc/xyz",
                    data: JSON.stringify(jData),
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    success: function (**msg**) {
                        // STORE THIS msg object.
                    },
                    error: function (jqXHR, textStatus, errorThrown) {
                    }
                });
            });
        });
</code></pre>
