Returning A Custom Object From XMLHttpRequest Object
<p>I am returning an "Employee" object from my javascript ajax call..</p>

<pre><code>var xhReq = new XMLHttpRequest();
xhReq.open("POST", "MobileClientService.svc/REST/TestReturnEmployee", false);
xhReq.send(null);

var serverResponse = xhReq.responseText;
</code></pre>

<p>What is returned is JSON data. I would like to return an Object that has the structure of my Employee object so I could write in javascript..</p>

<pre><code>var name = serverResponse.Name;
</code></pre>

<p>Is this possible to do or is my only choise to parse the returned JSON string? No I cant use jquery (it returns the object fine that way) it must be javascript only.</p>
