Parse json file into list view

how can i convert this json array to element in list view?
the json text :[{"course_id":"1","course_name":"hydo"},{"course_id":"2,"course_name":"ti"}]

i want the list view to be appear like that :
course_id:1,course_name:hydo ---at the first index of list view
course_id:2,course_name:ti ----at the second indexof list view

or that if possible:
course_id:1,course_name:hydo (at the description) ,the same for course 2

any help ????

Please show the raw output of responseContent, before you do anything with it.

image

the respone is the same as json text

It is not valid (well, not for me...)

the response typy (application/json) ...i already decoded it

It is missing a double quote after the 2. Did you type that in here, or copy from responseContent ?

[{"course_id":"1","course_name":"hydo"},{"course_id":"2,"course_name":"ti"}]

the code :

the output :

and i want to convert the previuos listviw to that by cod for example :slight_smile:

Missing "

image

:question:

yes the 2 has double quotes sorry , i copied it at the front of reply

[{"course_id":"1","course_name":"hydo"},{"course_id":"2","course_name":"ti"}]

Something like this:

image

1 Like

Search this board for YAML

You can also get a similar behavior to what TIMAI2 proposes using the new list mapping blocks:

3 Likes

thank you alot veryyyyyyyyyyyyy much you survived meee really thank you :slight_smile:

yes the code he provides is survived me (TIMAI2

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