Skip to content

Conversation

@drualcman
Copy link

Updated JSHandler<TItem> to improve JSON deserialization by introducing JsonSerializerOptions with custom settings and a new NullToDefaultIntConverter. Refactored methods to use JsonElement for JavaScript interop callbacks, enhancing robustness and flexibility in handling JSON data. Removed unnecessary using directives for cleaner code.

Updated `JSHandler<TItem>` to improve JSON deserialization by introducing `JsonSerializerOptions` with custom settings and a new `NullToDefaultIntConverter`. Refactored methods to use `JsonElement` for JavaScript interop callbacks, enhancing robustness and flexibility in handling JSON data. Removed unnecessary `using` directives for cleaner code.
@joadan
Copy link
Collaborator

joadan commented Oct 31, 2025

Hi,

Thank you for this, however I'm not sure this is is the best way to handle this is issue.
We have control of the source of the json and it feels like we should try to fix it there.

I will take a closer look at the issue and take it from there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants