On Jun 4, 2024, at 12:28 PM, David G. Johnston <david.g.johns...@gmail.com> 
wrote:

> This seems to be working correctly. Lax mode causes the first array level to 
> unwrap and produce new context item values.  Then the wildcard member 
> accessor is applied to each.  Numbers don’t have members so no matches exist 
> in the first example.  The object in the second indeed has a single member 
> and so matches the wildcard and its value, the array, is returned.

Oh FFS, unwrapping still breaks my brain. You’re right, of course. Here’s a new 
patch that demonstrates that behavior, since that code path is not currently 
represented in tests AFAICT (I would have expected to have broken it with this 
patch).

D

Attachment: 0001-Add-tests-for-jsonpath-.-on-arrays.patch
Description: Binary data

Reply via email to