Marks50 / jsonpath

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

json_decode stdclass compatibility #32

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
jsonPath(json_decode('{ "data1": "value"}'), "$.data1");

What is the expected output? What do you see instead?
expected: array("value")
returned: false

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

Please provide any additional information below.
jsonPath(json_decode('{ "data1": "value"}', true), "$.data1"); works fine 
because the json is decoded as an array.
it seems like json decoded in object (stdclass) doesn't work.

Original issue reported on code.google.com by Charl.Th...@gmail.com on 17 Feb 2015 at 12:23