---
cases:
  - note: jsonbuiltins/marshal
    query: data.generated.p = x
    modules:
      - |
        package generated

        p := x if {
        	json.marshal([{"foo": {1, 2, 3}}], x)
        }
    data: {}
    want_result:
      - x: '[{"foo":[1,2,3]}]'
