Mailgun, fore example, expects multiple “to” keys in the json payload for batch sending emails to multiple recipients via a single API call.
But Particle appears to overwrite key:value pairs if the same key is used multiple times.
See example below…
Anyway around this?
Your request is a “form” request, so you can pass multiple properties with the same name, but in this case you’re encoding a form request in a JSON object, so JSON rules apply.
The Standard you quote does mention that parsing libraries may report an error, or the last value, or all the name/value pairs including duplicates. The latter would be best in the case of mailgun, since it is the software receiving the non-unique objects and it knows how to handle them.