Replies: 3 comments 4 replies
-
Hey @innoswarz! I'm here to help you with any bugs, questions, or contributions. Let's solve this together! To resolve the issue with parsing JSON using the "Parse JSON" component, ensure that the input from the "File" component is correctly formatted as a JSON list. The "Parse JSON" component expects the input to be a JSON list, and your JQ query Here are a few things to check:
If everything is set up correctly and you're still facing issues, try adding a debug step to inspect the output from the "File" component before it reaches the "Parse JSON" component. This can help confirm that the data is being passed correctly. |
Beta Was this translation helpful? Give feedback.
-
Ok, I am stupid. For desired result jq query must be: ".[0].text | fromjson | .[0].name" |
Beta Was this translation helpful? Give feedback.
-
so if your input is json, you have to append .[0].text|fromjson|.[0] before your jq query? Seems a little counterintuitive? |
Beta Was this translation helpful? Give feedback.
-
I have a problem with understanding how to parse JSON.
I have a file "test.json":
[
{
"name": "bob"
},
{
"name": "bib"
}
]
I loaded it with "File" component and then I tried to parse it with "Parse JSON" component with JQ Query ".[0].name". Output is none but should be "bob". What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions