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'm trying to apply this expression to the following document
length((components[?type == 'Stepper'].children | @[].validationState)[?@ == 'NotValid']) == `0`
{ "components": [ { "type": "Stepper", "children": [ { "validationState": "NotValid" }, { "validationState": "Valid" } ] } ] }
The expected result should be "false", as it is the actual value returned by the online tester https://jmespath.org/.
var text = File.ReadAllText(Path.Combine("test_files", "projection_issue.json")); var jsonOptions = new JsonDocumentOptions(); jsonOptions.CommentHandling = JsonCommentHandling.Skip; using JsonDocument doc = JsonDocument.Parse(text, jsonOptions); var expression = JsonTransformer.Parse("length((components[?type == 'Stepper'].children | @[].validationState)[?@ == 'NotValid']) == `0`"); var result = expression.Transform(doc.RootElement); Assert.IsFalse(result.RootElement.GetBoolean());
This unit test is currently failing.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm trying to apply this expression to the following document
The expected result should be "false", as it is the actual value returned by the online tester https://jmespath.org/.
This unit test is currently failing.
The text was updated successfully, but these errors were encountered: