Describe the problem/error/question
I’m trying to create a simple dictionary (object) lookup. For instance
{
"Apple": { "color": "blue", "inventory": 2 },
"Banana": { "color": "Yellow", "inventory": 0 }
}
In my set node I select “object” and include this statement withing double parentheses {{ }}
{{
{
"Apple": { "color": "blue", "inventory": 2 },
"Banana": { "color": "Yellow", "inventory": 0 }
}
}}
What is the error message (if any)?
'dict' expects a object but we got '[object Object] ' [item 0]
To fix the error try to change the type for the field "dict" or activate the option “Ignore Type Conversion Errors” to apply a less strict type validation
Please share your workflow
Share the output returned by the last node
None
Information on your n8n setup
- n8n version: 2.0
- Database (default: SQLite): SQLite
- n8n EXECUTIONS_PROCESS setting (default: own, main): own
- Running n8n via (Docker, npm, n8n cloud, desktop app): Cloud
- Operating system: MacOS