Parsed Json data dosen't work #5478
Replies: 1 comment 1 reply
-
Hello @StefanHult! I'm here to assist you with any bugs, questions, or contributions you have. Let's figure this out together! The error you're encountering, "Key error 'number'," suggests that the Parser component is unable to find the 'number' key in the JSON data. This could be due to the way the JSON is being parsed or how the JQ query is structured. Here are a few suggestions to address the issue:
If these steps don't resolve the issue, you might need to review the specific implementation of the Parser component to ensure it aligns with your data structure and requirements. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
I am playing arond with Langflow to see if I can connect it to a API for a Business system.
I use the API request, and in this case to get customers, it works fine.
The problem is when I run the data through the Parser. I get an error "Key error 'number'".
The template is used, and I have added there "Number: {number} , Name: {name}".
Just to name, leave the template blank, nothing happens and is most likely also what should happen.
I hacked the code a bit and got it working, but as soon as I want to get data from a nested object, it stops working again.
Any code on stock, that gets round the problem?
Data from the API Request looks like this, and this example is a single customer but I get the same error when sending in a list of customers.:
Beta Was this translation helpful? Give feedback.
All reactions