When I call a method in Postman, I receive an array that includes my JSON data as shown below:
[
{
"spark_version": "7.6.x-scala2.12"
}
]
The API Method
[HttpGet]
public IActionResult GetTest(int ActivityId)
{
string StoredJson = "exec sp_GetJobJSONTest " +
"@ActivityId = " + ActivityId ;
var result = _context.Test.FromSqlRaw(StoredJson);
return Ok(result);
}
I am looking for a way to remove the square brackets [ ] from my response. Any suggestions on how to accomplish this?