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?
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