GNOME Bugzilla – Bug 691557
Getting all array elemements with wildcard fails
Last modified: 2013-01-11 18:17:13 UTC
Using the same example as in the documentation, if I run JSON path with $['store']['book'][*] I should get an array with all the books (an array with 4 objects). But rather, I'm getting an array composed of several arrays. The funny thing is each of these arrays is the solution. I'm attaching a patch that adds this use case to path testcase, as well as it fixes the problem.
Created attachment 233241 [details] [review] Add test case and fixes the problem
thanks, pushed to master, along with a similar commit that fixed the same issue in the object code path.
also pushed to the stable json-glin-0-14 branch.