[ 
https://issues.apache.org/jira/browse/CAMEL-20298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Cosentino resolved CAMEL-20298.
--------------------------------------
    Resolution: Fixed

> Enhancing JSONata Compatibility for Full Reference Port
> -------------------------------------------------------
>
>                 Key: CAMEL-20298
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20298
>             Project: Camel
>          Issue Type: Improvement
>    Affects Versions: 3.22.0, 4.0.3, 4.3.0
>            Reporter: Otávio Prado
>            Assignee: Andrea Cosentino
>            Priority: Minor
>             Fix For: 4.4.0
>
>
> When attempting to use the expression Email#$i[$i>0] in the Camel JSONata 
> component the error is as follows:
> {code:java}
> line 4:19 at null: token recognition error at: '#', line 4:20 at 
> [@23,106:107='$i',<47>,4:20]: mismatched input '$i' expecting {'.', ',', 
> 'in', '?', '[', '{', '}', '~>', '*', '/', '+', '-', '%', '=', '!=', '<', 
> '<=', '>', '>=', '&', '^', 'and', 'or'} {code}
> This error occurs because the IBM JSONata library does not fully implement 
> the JSONata specification as defined in the reference implementation: 
> [JSONata Reference Implementation|https://github.com/jsonata-js/jsonata].
> It prevents us from validating and ensuring compatibility with the JSONata 
> specification, impacting the reliability and quality of our component.
> *Proposed Solution:* To address this issue, we need to either modify the IBM 
> JSONata library to fully adhere to the JSONata specification or consider 
> alternative libraries that provide full compatibility. We will evaluate the 
> best course of action to ensure that our Camel JSONata component works 
> seamlessly with JSONata expressions.
> *Additional Information:*
>  * Affected Component: Camel JSONata
>  * Current Library: IBM JSONata
>  * JSONata Specification: [JSONata Reference 
> Implementation|https://github.com/jsonata-js/jsonata]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to