title: jayway 2.2.0 remove brackets in jsonpath
body: <p>We just started using 2.2.0 jayway and it seems to have many differences than 0.9.1. </p>
  
  <p>I am trying to get this item: <code>$.[?(@.errorId=='200')].errorName[0]</code> which worked in 0.9.1 by returning the value of errorName. In 2.2.0 it returns nothing. If I change it to <code>$.[?(@.errorId=='200')].errorName</code> I get back a string WITH brackets "[result]" which does not work for me. What should be the jsonPath in order to return a value and not an array?</p>