Skip to content

jmespath: allow rhs_expression in a keyvalue - expression#687

Merged
danielaparker merged 1 commit into
danielaparker:masterfrom
BartelNieuwenhuyse:bugfix/jmespath_keyval-expr
Mar 13, 2026
Merged

jmespath: allow rhs_expression in a keyvalue - expression#687
danielaparker merged 1 commit into
danielaparker:masterfrom
BartelNieuwenhuyse:bugfix/jmespath_keyval-expr

Conversation

@BartelNieuwenhuyse
Copy link
Copy Markdown

I tried the following jmespath expression and noticed that jsoncons_ext jmes_path could not compile the expression:

{value: foo.bar == 'baz'}

because it expected '}' or ',' after the lhs_expression value part of a "key: value" and found a comparator ==, i.e. the start of a rhs_expression.

The jmespath grammar allows any expression as value in a multi select hash, so also those consisting of lhs and rhs part.

… allow turning lhs_expression into e.g. a boolean using comparator
@danielaparker danielaparker merged commit 1616f50 into danielaparker:master Mar 13, 2026
37 checks passed
@danielaparker
Copy link
Copy Markdown
Owner

Thanks for contributing!

@BartelNieuwenhuyse BartelNieuwenhuyse deleted the bugfix/jmespath_keyval-expr branch March 17, 2026 08:47
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