Skip to content

Conversation

Knicker
Copy link

@Knicker Knicker commented May 26, 2025

Fix casting error "The binary operator Equal is not defined for the types 'System.Text.Json.JsonElement' and 'System.String'."

It's done in the github editor

Fix casting error "The binary operator Equal is not defined for the types 'System.Text.Json.JsonElement' and 'System.String'."
@Knicker
Copy link
Author

Knicker commented May 27, 2025

@microsoft-github-policy-service agree

@whuanle
Copy link

whuanle commented Aug 14, 2025

Your code seems to have some issues and needs to be corrected:

JsonValueKind.Number => property.Value.TryGetInt64(out var l) ?  l: property.Value.GetDouble(),

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