Skip to content

fix(select): allow parse number values - #46

Open
lgaticaq wants to merge 2 commits into
olore:masterfrom
lgaticaq:bugfix/parse-numbers
Open

fix(select): allow parse number values#46
lgaticaq wants to merge 2 commits into
olore:masterfrom
lgaticaq:bugfix/parse-numbers

Conversation

@lgaticaq

Copy link
Copy Markdown

This MR allows you to select numerical values. Like for example an id.

jq(
  {someKey: [{id: 1, name: 'Example 1'}, {id: 2, name: 'Example 2'}]},
  '.someKey | .[] | select(.id == 2) | .name'
)

@olore

olore commented Mar 19, 2022

Copy link
Copy Markdown
Owner

Hi @lgaticaq ! Thanks for the MR! Do you mind also writing a test for this change?

@lgaticaq

lgaticaq commented Jul 7, 2022

Copy link
Copy Markdown
Author

@olore sorry the delay. Yes i push a new commit with the test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants