How to read json array?

i have an api url : https://jsonplaceholder.typicode.com/posts using GET method

it gives me JSON array i want to create dynamic template which gives me result in xml format.

i want output something like

and so on…

Thanks in advance
Nikhil Purohit

Hello!

To iterate you should use range function, and you can find examples here Request Body

{{range $index, $element := .value_list}}
{{end}}

To access a specific element of an array, use “index” function:

{{index .value_list 1}}

ya i did but in my case i have no name of json array check this https://jsonplaceholder.typicode.com/posts

I this case it should work with dot:

{{range $index, $element := .}}
{{end}}