JoshKaufman/jsonpath

Fail to detect wrong syntax

Opened this issue · 0 comments

What steps will reproduce the problem?
1. Use syntax like: $.['number']

What is the expected output? What do you see instead?
This syntax is not documented, but it is treated as an equivalent to $..number.

What version of the product are you using? On what operating system?
0.8.0

Please provide any additional information below.
replace(/;;;|;;/g, ";..;") in normalize should be the problem

Original issue reported on code.google.com by softrank...@gmail.com on 6 Jul 2014 at 3:07