We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24e7a00 commit 71fe0daCopy full SHA for 71fe0da
1 file changed
ServiceStack.Text/src/ServiceStack.Text/SystemJsonUtils.cs
@@ -22,6 +22,8 @@ public class SystemJsonUtils
22
return longValue;
23
if (element.TryGetDouble(out double doubleValue))
24
return doubleValue;
25
+ if (element.TryGetDecimal(out decimal decimalValue))
26
+ return decimalValue;
27
return element.GetRawText(); // Fallback
28
case JsonValueKind.True:
29
return true;
0 commit comments