---
cases:
  - note: jsonremove/empty list
    query: data.generated.p = x
    modules:
      - |
        package generated

        p := __local0__ if {
        	json.remove({"a": 7}, set(), __local1__)
        	__local0__ = __local1__
        }
    data: {}
    want_result:
      - x:
          a: 7
