Resolve deserialization issue with System.Text.Json when accessing remote services
This commit is contained in:
parent
a4b7381141
commit
e88d3cca07
|
@ -106,7 +106,7 @@ namespace Oqtane.Controllers
|
|||
var stream = await response.Content.ReadAsStreamAsync();
|
||||
using (var streamReader = new StreamReader(stream))
|
||||
{
|
||||
return await JsonSerializer.DeserializeAsync<T>(stream);
|
||||
return await JsonSerializer.DeserializeAsync<T>(stream, new JsonSerializerOptions(JsonSerializerDefaults.Web));
|
||||
}
|
||||
}
|
||||
return default(T);
|
||||
|
|
Loading…
Reference in New Issue
Block a user