Post not yet marked as solved
Post marked as unsolved with 2 replies, 77 views
Hey there,
I'm trying to decode an json with an dynamic dict as value.
eg.
"results": [
{
"id": 1799,
"created_at": "2024-05-09T14:21:13.289655Z",
"updated_at": "2024-05-10T11:54:25.484537Z",
"email": "test@test.testh",
"name": "Test",
"attributes": {
"name": {
"firstname": "max",
"lastname": "mustermann"
},
"anboolen": false,
"anNumber": 1,
"anString": "Test"
}
}
]
The dictionary "attributes" is always an dictionary but the content inside could be everything.
for the container of results I already created an struct and using JSONDecoder to decode, but now I have the issue with the attributes part.
Can anyone help me with this issue?
Thanks in advance!