I'm working on WebAPI project.
I have the following method:
public string Get(string a, string b)
{
return "test";
}
When I send the GET request with Accept: application/json
header, the WebAPI returns the following response:
"test"
This response is not valid, it should be:
[
"test"
]
How can I force the WebAPI to include square brackets in JSON response?