I have created this unit test, that works when using same data on try.jsonata.org. But it currently fails using JSONata4Java
public void shouldEvaluateJsonataExpression() throws Exception {
ObjectMapper objectMapper = DatabindCodec.mapper();
JsonNode jsonNode = objectMapper.readTree("[[\"A\",\"B\",\"C\"],[\"AA\",\"BB\",\"CC\"]]");
Expressions expressions = Expressions.parse("$.[$[0],$[1]]");
JsonNode evaluatedNode = expressions.evaluate(jsonNode);
assertThat(evaluatedNode.toString(), equalTo("[[\"A\",\"B\"],[\"AA\",\"BB\"]]"));
}
I have created this unit test, that works when using same data on try.jsonata.org. But it currently fails using JSONata4Java
Any clues on what is wrong