Description
Library/API/IoT binding
nanoFramework.Json
Visual Studio version
No response
.NET nanoFramework extension version
No response
Target name(s)
No response
Firmware version
No response
Device capabilities
No response
Description
With current implementation of JSON serialization the library is checking for properties when deserializing with exact match case which is not the default behavior in .net
https://docs.microsoft.com/en-us/dotnet/standard/serialization/system-text-json-character-casing
"The web default is case-insensitive."
Solution:
Create new static class with configuration options for json serialization with one new property PropertyNameCaseInsensitive. When deserializing use new flag to determinate either use case sensitive names or not.
How to reproduce
No response
Expected behaviour
No response
Screenshots
No response
Sample project or code
No response
Aditional information
No response