---
cases:
  - data:
      a:
        - 1
        - 2
        - 3
        - 4
    modules:
      - |
        package generated

        p = x {
          __local0__ = data.a[0]
          json.unmarshal(__local0__, x)
        }
    note: jsonbuiltins/unmarshal-non-string
    query: data.generated.p = x
    strict_error: true
    want_error: operand 1 must be string but got number
    want_error_code: eval_type_error
