# Each key must be a number of string; got undefined protractor

I am trying to read data from json file but I have some trouble.
How can I get items from a json file to individual items?

My json file:

[
{
}
]


My method:

element(by.name('username')).sendKeys(browser.params.UserName);


as a result i get

Failed: each key must be a number of string; got undefined


Source: AngularJS

#### 1 comment on Each key must be a number of string; got undefined protractor

1. SanChe says:

Hi danio, were you able to resolve this issue. I am seeing the same error and am not sure how to go about it. Any help would be appreciated. Thanks!