---
cases:
  - note: jsonfilter/multiple roots
    query: data.generated.p = x
    modules:
      - |
        package generated

        p := __local0__ if {
        	json.filter({"a": {"b": {"c": 7, "d": 8}}, "e": 9}, {"a/b/c", "e"}, __local1__)
        	__local0__ = __local1__
        }
    data: {}
    want_result:
      - x:
          a:
            b:
              c: 7
          e: 9
