Skip to content

Issue with JSON value conversion #4

@an-da-liu

Description

@an-da-liu

When running the sample Program.cs I'm getting:
Unhandled exception. System.Text.Json.JsonException: The JSON value could not be converted to System.Boolean. Path: $.info.leds.wv | LineNumber: 0 | BytePositionInLine: 521.
---> System.InvalidOperationException: Cannot get the value of a token type 'Number' as a boolean.

I believe this is due to a change in the MS System.Text.Json handling but I'm unsure how to get around this.

Appologies if this is not an issue but just me not knowing what I'm doing.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions