which I believe is due to the fact that "true" is enclosed in quotes, instead of just being
{"active": true }
Since this is information I am obtaining froma REST API from a particular website, I have no control of the data that is coming in.
Is there anyway I can work around this? I have attempted to extend the BooleanFormatter class so I can provide a custom BooleanFormatter, but since the class is sealed, I can't seem to do much.
When deserializing a json string with a boolean value like:
{"active": "true"}
I am getting the following error:
Utf8Json.JsonParsingException: expected:'true | false', actual:'"true"'
which I believe is due to the fact that "true" is enclosed in quotes, instead of just being
{"active": true }
Since this is information I am obtaining froma REST API from a particular website, I have no control of the data that is coming in.
Is there anyway I can work around this? I have attempted to extend the BooleanFormatter class so I can provide a custom BooleanFormatter, but since the class is sealed, I can't seem to do much.
Any help would be quite appreciated!
Thanks.