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
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\"]]")); }
Any clues on what is wrong
The text was updated successfully, but these errors were encountered:
I think there is a bug with the $. before the array. Without that we get the same as try.jsonata.org. I'll try to look into this.
Sorry, something went wrong.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: