I have the code below as an api endpoint. I want the json string to be displayed on browser when I access the endpoint.
However, when I access the endpoint, a file is dow