RulesEngine icon indicating copy to clipboard operation
RulesEngine copied to clipboard

Fix JSONDemo.cs - Casting error

Open Knicker opened this issue 7 months ago • 2 comments

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

Knicker avatar May 26 '25 16:05 Knicker

@microsoft-github-policy-service agree

Knicker avatar May 27 '25 06:05 Knicker

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

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

whuanle avatar Aug 14 '25 08:08 whuanle