Skip to content
New issue

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

Positional variable binding not working in java #325

Open
ClementLagorce opened this issue Nov 11, 2024 · 2 comments
Open

Positional variable binding not working in java #325

ClementLagorce opened this issue Nov 11, 2024 · 2 comments

Comments

@ClementLagorce
Copy link

Hello,

I wanted to use this feature to be able to store filtered element indexes like this doc example :
library.books#$i['Kernighan' in authors].{
'title': title,
'index': $i
}
It works well on the exerciser page which is based on the javascript version of this library but not with java where I get a Parsing exception :
com.api.jsonata4java.expressions.ParseException: line 1:13 at null: token recognition error at: '#'
, line 1:14 at [@3,14:15='$i',<47>,1:14]: mismatched input '$i' expecting {, '.', 'in', '?', '[', '{', '~>', '*', '/', '+', '-', '%', '=', '!=', '<', '<=', '>', '>=', '&', '^', 'and', 'or'}
Is it a bug or this feature is simply not supported by the java version ? If not is it planned ?

Thanks in advance.

@wnm3
Copy link
Member

wnm3 commented Nov 11, 2024

This is new to me (added to jsonata.org in version 1.7) and not currently supported. There are no immediate plans to support it.

@ClementLagorce
Copy link
Author

All right thanks for the answer !

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

No branches or pull requests

2 participants