Don't read the JSON Object in node.js
<p>I have some problem to get json object...</p>

<p>I send a json object to localhost(node.js server).</p>

<p>When node.js server received the json object, parsed json object has 'undefined
 type. </p>

<p>For that reason, I checked the json object but it has not structure problem..</p>

<p>How can I solve this problem?</p>

<p>Thank in advance!</p>

<pre><code>$.ajax({
    url: "http://127.0.0.1:62590/saveResource",
    type: "post",
    dataType: "text",
    cache: false,
    timeout: 30000,
    data: JSON.stringify(jsonObject),
    success: function (data) {
       ............
    },
    error: function (xhr, textStatus, errorThrown) {
        alert(textStatus + ' : ' + errorThrown);
    }
});
</code></pre>

<p>===========================================================================</p>

<pre><code>app.post('/saveResource', function (request, response) {

    var resultObj = request.body;
    var object = resultObj.requestInfo;
    console.log(typeof(object)); -&gt; 'undefined' type
});
</code></pre>

<p>===========================================================================</p>

<pre><code>* node.js server reveceive the following object.


{
  "requestInfo": {
    "urlInformation": "data",
    "methodInformation": "GET",
    "bodyInformation": "data",
    "headerInformation": []
  }
}
</code></pre>