JSON Reader - "object is dict"?

I’m parsing a json from an output that a ASK AI node genrated.

The json reader is then looking for a nested key (lead_assessment.lead), but fails and says that it is a dictionary:

e[31m JSON Reader Failed!
Cannot access ‘"lead_assessment’ in ‘“lead_assessment.lead”’. Current object is dicte[0m

As far as I can tell, even for the failed runs, the json does contain the correct keys.

Workbook:

https://www.gumloop.com/pipeline?workbook_id=sLXxKRLdomuqLmvnWJrRNx&tab=10&run_id=XHUSnqDNhFzFbxVYbd4Rpg

Hey @SimonSays! If you’re reporting an issue with a flow or an error in a run, please include the run link and make sure it’s shareable so we can take a look.

  1. Find your run link on the history page. Format: https://www.gumloop.com/pipeline?run_id={your_run_id}&workbook_id={workbook_id}

  2. Make it shareable by clicking “Share” → ‘Anyone with the link can view’ in the top-left corner of the flow screen.
    GIF guide

  3. Provide details about the issue—more context helps us troubleshoot faster.

You can find your run history here: https://www.gumloop.com/history

Hey @SimonSays – This is because of the quotation marks around the Key, the node takes it literally. Once you remove that it should work as expected. Eg: https://www.gumloop.com/pipeline?workbook_id=nt5bccYix8jB5L8vPASfgZ&run_id=nSVoh8WXuCNHxrvZwEfJTH

Can you please elaborate? Isn’t the quotation marks needed for keys and values for a json. Also, the example you gave me also has quotation marks. I feel like I’m missing something.

Thanks,

I mean’t inside the node’s Key input:

With quotation marks:

Without:

Let me know if that makes sense.

Oh, that makes sense. Thanks so much for your help.

No problem! :slight_smile:

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.