jayway/JsonPath — pull request #5 by mattbishop (2012-02-29 01:17:11+00:00)
Title: Bug fix for IndexOutOfBoundsException

If a json-path ended with a dot example: "$..book['something']." JsonPath would throw an IndexOutOfBoundsException. This is because PathTokenizer would do a peek() after a poll() without checking to see if the Tokenizer is empty.