title: Each key must be a number of string; got undefined protractor
body: <p>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?</p>
  
  <p>My json file:</p>
  
  <pre><code>[
   {
    "UserName": "test@test.en",
    "Password": "tests123"
   }
  ]
  </code></pre>
  
  <p>My method:</p>
  
  <pre><code>element(by.name('username')).sendKeys(browser.params.UserName);
  element(by.name('password')).sendKeys(browser.params.Password);
  </code></pre>
  
  <p>as a result i get</p>
  
  <pre><code>Failed: each key must be a number of string; got undefined
  </code></pre>