i have my string text in my variable in C#:
string readText = File.ReadAllText(path);
return readText;
When i call this from my FE, the response type is text/html.
How can i change it in "application/json"? Is there any ChangeResponseType method for a string variable?