Why doesn't a POST request?

With Ajax POST-request fed Nodejs', with Express'Ohm on Board, a string array like
[ { "test1" : "1" },
 { "test2" : "0" } ]

In express'e use BodyParser for processing POST requests.
Receive a request using the post method of the Express object and if the body is displayed in the console (or to pass back to the client), it displays the following object:
{ { "test1" : "1" }, { "test2" : "0" } : "" }

Question: why is it so and how to fix it?

Client-request-ID:
arrOut = JSON.stringify(arrOut);

$.ajax({
 url: 'http://test.ru/api/test',
 method: 'POST',
 dataType: 'json',
 success: function (response) { console.log( response) },
 data: arrOut
});


Code request processing by the server:
app.post('/api/test', function(req, res) {
 console.dir (request.body);
response.send(request.body);
});
March 19th 20 at 08:52
1 answer
March 19th 20 at 08:54
If anyone is interested - made from solid object, removed thestringifybefore sending and the problem disappeared.

Find more questions by tags Express.jsNode.js