Forum Discussion

LordNeilLord's avatar
LordNeilLord
New Contributor II
3 years ago
Solved

Mixed array and object JSON

Hello, I have a feed coming from github which I need to get certain attributes but some of the items are being returned as arrays and some are being returned as objects! Does anyone know how I can ...
  • ptaylor's avatar
    10 months ago

    That's the only way since your string is definitely not valid JSON. You need it to look like this:

    {"language": "Tamil", "taskId": 123}