You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run the following jq via jqplay and it fails while running the same using jq cli works:
This should be working with any json input.
query:
.|[leaf_paths as $path|{key: $path|join("^"), value: getpath($path)}]
jqplay result:
jq: error: leaf_paths/0 is not defined at , line 1:
.|[leaf_paths as $path|{key: $path|join("^"), value: getpath($path)}]
jq: 1 compile error
exit status 3
Hi.
I'm trying to run the following jq via jqplay and it fails while running the same using jq cli works:
This should be working with any json input.
query:
.|[leaf_paths as $path|{key: $path|join("^"), value: getpath($path)}]
jqplay result:
jq: error: leaf_paths/0 is not defined at , line 1:
.|[leaf_paths as $path|{key: $path|join("^"), value: getpath($path)}]
jq: 1 compile error
exit status 3
CLI:
cat /tmp/a.json | jq '.|[leaf_paths as $path|{key: $path|join("^"), value: getpath($path)}]'
[
{
"key": "glossary^title",
"value": "example glossary"
}
]
The text was updated successfully, but these errors were encountered: