I see that my APIController is returning a JSON but formatted as text, which means I have to parse it in client in order to manipulated it, and I want to avoid that.
I tried several things that are mentioned in this site and none worked.
What can I do?
Here is the controller method:
public async Task<IActionResult> Get()
{
var ordersList = await _ordenExternaService.GetOrdenExternaCasos();
var json = JsonConvert.SerializeObject(casos);
return Ok(json);
}
Here is the Postman result:
"[{\"Id\":3,\"IdOrdenExterna\":9041,\"NroCaso\":null,\"Motivo\":\"Nombre y Apellido de envio Completo no coincide con el del titular de la Tarjeta\",\"FechaEnvio\":null,\"NroOrdenPublica\":\"187901-205292-1665\"}]"