Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
questions/48179763/force-decimal-type-in-class-definition-during-serialization by dbc_MinLength
Environment version: 4.0.30319.42000
Json.NET version: Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed


test.rows[].values types: Decimal,Decimal,Decimal,String.

Serialized JSON: 
{
  "rows": [
    {
      "myString": "hello",
      "values": [
        1.010101010101010101010101,
        2020.202020202020202020202,
        123456789012345678.90123456,
        "hello"
      ]
    }
  ]
}

test2.rows[].values types: Decimal,Decimal,Decimal,String.
All tests passed.
Cached Result
Last Run: 2:12:30 am
Compile: 0.283s
Execute: 0.567s
Memory: 2.64Mb
CPU: 0.719s