joshbuddy / jsonpath

Ruby implementation of http://goessner.net/articles/JsonPath/
MIT License
447 stars 72 forks source link

length is not working in JSON Path #167

Open narendranvelmurugan opened 6 months ago

narendranvelmurugan commented 6 months ago

JSONPath: $.response.sample.ids.length

Object: { "response": { "sample": { "ids": [ 1146 ] } } }

Result: []

Expected: [1]

This returns empty array, it should have returned the count of elements in the sample.ids. Is there any to handle this case?