-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uppercase #110446
Comments
Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis |
https://learn.microsoft.com/dotnet/standard/serialization/system-text-json/character-casing var options = new JsonSerializerOptions
{
PropertyNameCaseInsensitive = true
};
WeatherForecast? weatherForecast = JsonSerializer.Deserialize<WeatherForecast>(jsonString, options); |
Entiendo, agradezco. 🤭👍 |
You can create it once and reuse it. |
Closing as answered. |
Description
Bug en deserializar
La api me responde el contenido del
api response
pero no lo deserializa. Por lo que procedí a crear el objeto que estoy recibiendo y serializarlo. lo único diferente que observo son las mayúsculas. El nugget deNewtonsoft.Json
lo hace sin ningún problema, peroSystem.Text.Json
noapi response
Reproduction Steps
RestClientOptions
JsonSerializer.Deserialize
para extraer la respuesta de la apiExpected behavior
Actual behavior
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: