How can I sort the external API response

Hi there,

I want to sort the external api response in the format of passing the input. Please see the below screenshot to understand more -

This is my request body, just observe the planet names (I want in that way in response)

{
  "day": 10,
  "month": 10,
  "year": 1990,
  "hour": 10,
  "min": 10,
  "lat": 10.19,
  "lon": 90.11,
  "tzone": 5.5,
  "planet_names": "Moon, Sun, Mercury, Uranus, Mars, Pluto, Venus"
}

The response I'm getting -

This is my function stack -

Thanks for your help.

6 replies