Querystring doesn't stringify properly in nodejs

Problem

here is my question,

this is my string:

    var body = {
        message: "Hello",
        properties: [
            { text: 'Link Test 1', href: 'http://hei.it'},
            { text: 'Link Test 2', href: 'http://hei.it/rai1'},
        ],
        actions: [
            { name: 'Shawn', link: 'http://hu.com'}
        ]
    };

If I use

querystring.stringify(body);

I get back

 message=Hello&properties=&properties=&actions=

Is querystring bugged or am I wrong?

Problem courtesy of: nick

Solution

So far I found a library called node-qs that outputs:

message=Hello&actions[0][name]=Shawn&actions[0][link]=http%3A%2F%2Fhei.com

Solution courtesy of: nick

Discussion

There is currently no discussion for this recipe.

This recipe can be found in it's original form on Stack Over Flow.