RulesEngine
RulesEngine copied to clipboard
Fix JSONDemo.cs - Casting error
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
@microsoft-github-policy-service agree
Your code seems to have some issues and needs to be corrected:
JsonValueKind.Number => property.Value.TryGetInt64(out var l) ? l: property.Value.GetDouble(),