All examples for this library are around vectors. Not a single example shows how to fetch just a specific value from json using jsonpath. If select returns vector everytime, how would program know if returned value was actually an json array or json value?
Also there is incosistency in the results returned by select and select_as_str
I have below json. For json path $.args.foo1, select_as_str() returns "[\"bar1\"]" which is ofcourse wrong and select() doesn't return anything!! but empty array
All examples for this library are around vectors. Not a single example shows how to fetch just a specific value from json using jsonpath. If
select
returns vector everytime, how would program know if returned value was actually anjson array
orjson value
?Also there is incosistency in the results returned by
select
andselect_as_str
I have below json. For json path
$.args.foo1
,select_as_str()
returns"[\"bar1\"]"
which is ofcourse wrong andselect()
doesn't return anything!! but empty array