Create contact with SDK and REST not working

I found an answer after rereading @Andrew_Johnson’s post and finding this post in the forums:

In my case the email_addresses field needed to be a multidimensional array. I corrected my code to produce the following output:

	"email_addresses": {
		"0": {
			"email": "",
			"field": "EMAIL1"

It would be extremely helpful if somewhere between the SDK and the API could give more detailed feedback as to which element of the input is invalid.