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
Use jq instead of JSONPath for filtering JSON.
The syntax is more intuitive :
.
$.
.name
$.name
.[0]
$.[0]
.[0].name
$.[0].name
.[0].owner.username
$.[0].owner.username
.[] | select(.id == 411)
$[?(@.id == 411)]
.[] | select(.owner.id == 1)
$[?(@.owner.id == 1)]
.[] | select(.stars_count > 0)
$[?(@.stars_count > 0)]
.[] | select(.stars_count > 0) | .name
$[?(@.stars_count > 0)].name
. | sort_by(.id)
map(select(.stars_count > 0)) | sort_by(.id)
map(select(.stars_count > 0)) | sort_by(.id) | .name
.[] | select(.created_at | test("^202[34]"))
$[?(/^202[34]/.test(@.created_at))]
Etc...
Thanks
The text was updated successfully, but these errors were encountered:
Hi 👋, I would like to work on this issue. Can you assign this issue to me.
Sorry, something went wrong.
Hi, I don't have the permission to assign, but feel free to work on this, I'm looking forward to it :)
No branches or pull requests
Is there an existing issue for this?
Summary
Use jq instead of JSONPath for filtering JSON.
Why should this be worked on?
The syntax is more intuitive :
.
$.
.name
$.name
.[0]
$.[0]
.[0].name
$.[0].name
.[0].owner.username
$.[0].owner.username
.[] | select(.id == 411)
$[?(@.id == 411)]
.[] | select(.owner.id == 1)
$[?(@.owner.id == 1)]
.[] | select(.stars_count > 0)
$[?(@.stars_count > 0)]
.[] | select(.stars_count > 0) | .name
$[?(@.stars_count > 0)].name
. | sort_by(.id)
map(select(.stars_count > 0)) | sort_by(.id)
map(select(.stars_count > 0)) | sort_by(.id) | .name
.[] | select(.created_at | test("^202[34]"))
$[?(/^202[34]/.test(@.created_at))]
Etc...
Thanks
The text was updated successfully, but these errors were encountered: