I want to set up a key value dictionary from 2 different fields in my payload. My first thought is to use a transform component and dynamically set the key, but this code does not work:

```
%dw 1.0
%output application/java
---
{
    payload.objectnumber: payload.objectid
}

```

I get this error:

```
Multiple markers at this line
- Invalid input "payload.", expected conditionalKeyValuePair,
   keyValuePair, enclosedExpr or objectEnd
- no viable alternative at input 'payload'
- no viable alternative at input '.'

```

Any ideas on how to get it working?

Input:

```
[{
  objectnumber: 75,
  objectid: "abcdefgh"
}]

```

Expected Output:

```
[{
  "abcdefgh": 75
}]

```