0
{
"droplets": [],
"links": {},
"meta": {
"total": 3
}

I would like to receive this 'total: 3', through json, I tried this way

        totals = droplet_response.json()
        tt = totals['meta']['total']

and he returned this to me

ERROR - 'meta'
Horus
  • 3
  • 2
  • Is that what `droplets_response.json()` actually looks like? – wkl Jun 23 '22 at 15:43
  • 1
    yes, inside droplets_response.json() this appears, I just want the "'total': 3" – Horus Jun 23 '22 at 15:45
  • 1
    Is it possible to show a minimal example that shows the code that can reproduce this? And what does `tt` look like if you do a `print(tt)` on it? Right now, from just glancing at it, it seems like it should work, though I don’t know what library you’re using so I don’t know what `json()` should look like from the response. – wkl Jun 23 '22 at 15:59
  • ***ERROR - unhashable type: 'set'*** – Horus Jun 23 '22 at 16:02
  • 2
    you are missing a `}` in the json posted at the top. Show us `print(totals)` – Anentropic Jun 23 '22 at 16:09

0 Answers0