Skip to content
New issue

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

Setup rules Using JSON for Nested arrays #372

Open
apurvjain17 opened this issue Mar 2, 2021 · 0 comments
Open

Setup rules Using JSON for Nested arrays #372

apurvjain17 opened this issue Mar 2, 2021 · 0 comments

Comments

@apurvjain17
Copy link

Hi Jesus,

I was trying to load rules using JSON for nested arrays. For arrays inside a JSON object, everything works fine. How do I access elements of an array inside another array?
For instance :-

{
    "data":[{
        "package":{
            "items":[{
                "value":5
            }]
    }]
}

A rule condition with value equal to 6, the below rule throws 202 Parse Error.

"test": {
    "r_0": {
      "all": [
        {
          "m": {
            "$iall":{
                "data":{
                    "$i.package":{
                        "$iall":{
                            "items":{
                                "$i.value":6
                            }
                        }
                    }
                }
            }
          }
        }

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant