If you are submitting a json body, do not use the form parameter. Using form will make arrays in field[0].attribute , field[1].attribute , etc. Use body instead.
var jsonDataObj = {'mes': 'hey dude', 'yo': ['im here', 'and here']}; request.post({ url: 'https://api.site.com', body: jsonDataObj, json: true }, function(error, response, body){ console.log(body); });
Ricky May 31 '17 at 17:34 2017-05-31 17:34
source share