Extract substring as arrays
adriendrien opened this issue · 1 comments
adriendrien commented
Hello,
With jq, it is possible to treat string as array so we can extract substring from string, like this:
# echo '{"hr": "12%"}' | jq '.hr[:2]'
"12"
When I try do this with the exporter, I get :
msg="Failed to execute jsonpath" err="string is not array or slice"
Which is understable. Is there another way to acheive this ?
adriendrien commented
Duplicate with #63 , my bad