I'm using the `N/https` module to make a post requ...
# suitescript
k
I'm using the
N/https
module to make a post request to a server. Everything was going fine until I tried to add an array of items to the POST body. For some reason, NetSuite turns the array of items into
null
. I log.debug my body which is this
Copy code
{
  "title": "MIM",
  "organizer": "<mailto:k@test.com|k@test.com>",
  "start_time": "15:00",
  "start_date": "4/8/2021",
  "end_time": "16:00",
  "end_date": "4/8/2021",
  "message": "test message",
  "timezone": "America/Chicago",
  "googleCalendarId": "1234",
  "attendees": [
    {
      "name": "Maureen",
      "email": "<mailto:m@test.com|m@test.com>"
    },
    {
      "name": "Kevin",
      "email": "<mailto:k@test.com|k@test.com>"
    }
  ]
}
But when I receive this post in my other application, the
attendees
come through as
null
. All the other data comes through fine. Does anyone have any idea what is wrong or how I might fix it?