Sending Object Arrays as JSON using FormData
I am sending a FormData object to an endpoint. A phone number needs to be formatted as this JSON: "phone": [{"type":"main", "value":"#"}, ...] or it gets rejected. A single object with a two-pair of keys and values in an array.…