---
cases:
  - data: {}
    modules:
      - |
        package generated

        p = [x, y, z] {
          io.jwt.decode("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIwIiwiaXNzIjoib3BhIiwiZXh0Ijp7ImFiYyI6IjEyMyIsImNiYSI6WzEwLCIxMCJdfX0.IIxF-uJ6i4K5Dj71xNLnUeqB9jmujl6ujTInhii1PxE", [x, y, z])
        }
    note: jwtbuiltins/complex-values
    query: data.generated.p = x
    want_result:
      - x:
          - alg: HS256
            typ: JWT
          - ext:
              abc: "123"
              cba:
                - 10
                - "10"
            iss: opa
            sub: "0"
          - 208c45fae27a8b82b90e3ef5c4d2e751ea81f639ae8e5eae8d32278628b53f11
