Marks50 / jsonpath

Automatically exported from code.google.com/p/jsonpath
0 stars 0 forks source link

The php code does not consider $expr = '0' in the trace() function #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
$data = array('foo' => array('a', 'b'))
jsonPath($data, '$.foo.0') returns the wrong result

What is the expected output? What do you see instead?
Expected output is array(0 => 'a')
Actual output is array(array(0 => 'a'))

What version of the product are you using? On what operating system?
jsonPath0.8.1.php on linux

Please provide any additional information below.

Original issue reported on code.google.com by trv...@gmail.com on 8 Sep 2011 at 10:29