I am working on sending JSON, via jQuery ajax, to a Node server. My jQuery ajax is working. See below.
var user = JSON.stringify(userObject);
$.ajax({
Well, the problem is that you're creating AN ARRAY then continue working with it as with an object.
Use
user.regions[a] = {};
instead.
What happens is that JSON.stringify
sees there is an array, tries to iterate over its numeric indexes which it does not have so it results in an empty array.
Example on JSFiddle: http://jsfiddle.net/Le80jdsj/