Skip to content

allow object prop shorthand notation like {.Prop1.Prop2, .Prop3}#34

Open
ceymard wants to merge 1 commit into
jsonquerylang:developfrom
ceymard:shorthand-notation
Open

allow object prop shorthand notation like {.Prop1.Prop2, .Prop3}#34
ceymard wants to merge 1 commit into
jsonquerylang:developfrom
ceymard:shorthand-notation

Conversation

@ceymard

@ceymard ceymard commented Jun 22, 2026

Copy link
Copy Markdown

Allow the use of a simplified object syntax {.prop, .prop1.prop2} which is equivalent to {prop: .prop, prop2: .prop1.prop2}.

Pairs nice with map and unicode properties (in a separate pull request) : map({ .Région, .Couleur }) instead of map({ "Région": ."Région", Couleur: .Couleur }). It allows a selection of subproperties quicker.

This is reminiscent of allowed javascript syntax when an identifier exists : { varname } is instead { varname: varname }.

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.

1 participant