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
In Interface ExprNode, lhs can be both an ExprNode and ExprNode[]
ExprNode
lhs
ExprNode[]
For example, jsonata('($x := 1; $y := 2;)').ast().expressions outputs
jsonata('($x := 1; $y := 2;)').ast().expressions
[ { type: "bind", value: ":=", position: 7, lhs: { value: "x", type: "variable", position: 4 }, rhs: { value: 1, type: "number", position: 9 }, }, { type: "bind", value: ":=", position: 15, lhs: { value: "y", type: "variable", position: 13 }, rhs: { value: 2, type: "number", position: 16 }, }, ];
And jsonata('{"x": y, "z": 1}').ast() outputs
jsonata('{"x": y, "z": 1}').ast()
{ "type": "unary", "value": "{", "position": 1, "lhs": [ [ { "value": "x", "type": "string", "position": 4 }, { "type": "path", "steps": [ { "value": "y", "type": "name", "position": 7 } ] } ], [ { "value": "z", "type": "string", "position": 12 }, { "value": 1, "type": "number", "position": 15 } ] ] }
Similar issue: #585
I'm using node v20.13.0 and jsonata v2.0.4. Happy to open a pull request.
The text was updated successfully, but these errors were encountered:
Update interface
784b001
Update interface property ExprNode.lhs to be either an ExprNode or ExprNode[] as described in issue jsonata-js#703
248d0bf
Update interface property ExprNode.lhs to be either an ExprNode or ExprNode[] as described in issue #703
Fixed via PR (thank you!)
Sorry, something went wrong.
No branches or pull requests
In Interface
ExprNode
,lhs
can be both anExprNode
andExprNode[]
For example,
jsonata('($x := 1; $y := 2;)').ast().expressions
outputsAnd
jsonata('{"x": y, "z": 1}').ast()
outputsSimilar issue: #585
I'm using node v20.13.0 and jsonata v2.0.4. Happy to open a pull request.
The text was updated successfully, but these errors were encountered: