I was once tasked with creating a new frontend on an old project that had an API endpoint return something like this:
var array = ["foo", "bar"]
I was expecting xml or json (like the rest of the endpoints), but I realized that they just served this as text, and then eval'd it on the frontend...