How to read json array?

i have an api url : 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


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

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

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

I this case it should work with dot:

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