Error creating new user in NodeJS ("Undefined offset: 1")


Hello all,

Can help me with this problem in NodeJS script, I try to create a new user but get always the same error:

var payload = [];
payload={"resource":[{"email": "","first_name": "string","last_name": "string","display_name": "string","new_password": "string","code": "string"}]};, payload, null, function(body, response) {}

And the error it is: Undefined offset: 1, and code 500

Can help me with this?

Best regards,