We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given a document that looks like so:
{ 'foo': [1,2,3,4] }
I would expect to be able to use a before script to replace the document with only the array, and have my jsawk script operate only on that array:
jsawk -b 'return this["foo"]' <<<"{'foo':[1,2,3,4]}"
However, this fails:
TypeError: IS has no properties
The text was updated successfully, but these errors were encountered:
For those curious how to do it:
jsawk -b 'return this[0].foo' -a 'return [this]' 'return this+1'
Sorry, something went wrong.
No branches or pull requests
Given a document that looks like so:
I would expect to be able to use a before script to replace the document with only the array, and have my jsawk script operate only on that array:
However, this fails:
The text was updated successfully, but these errors were encountered: