Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Positional variable binding not working in java #325

@ClementLagorce

Description

@ClementLagorce

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions