I'm getting some json data using Flurl (function below). My problem is that this returns the expected fields but not the actual data:
The json is at: https://jsonplaceholder.typicode.com/users
The exact same function worked fine in a separate standalone test app that did not use Microsoft.AspNetCore.Mvc.
Any ideas why it would return the fields but not the data? Thanks.
using System;
using Test.API.Constants;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using Flurl.Http;
namespace Test.API.Controllers
{
public class TestController
{
[Route(ApiControllerRoutes.Test.test)]
[HttpGet]
public async Task<dynamic> GetAsync()
{
try
{
string url = "https://jsonplaceholder.typicode.com/users";
return await url.GetJsonListAsync();
}
catch (Exception e)
{
}
}
}
}