Return array response in JSON(without Header)

Hi
here is the dataset link: Products
I want to have an array in response (without header attribute).

Expected:

["Product Attributes1", "Product Attributes2", "Product Attributes3"]

Actual:

{
	"attributes": ["Product Attributes1", "Product Attributes2", "Product Attributes3"]
}

As it is simple but needs to be done using API only.
can you suggest any solution in Mackaroo?

Thank You!

You can do this by creating a Mock API. Use this code:

schema "Products"
data = generate(1)
data['attributes']
1 Like