---
cases:
  - note: jsonremove/delete last in object
    query: data.generated.p = x
    modules:
      - |
        package generated

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