mgholam / fastJSON

Smallest, fastest polymorphic JSON serializer
https://www.codeproject.com/Articles/159450/fastJSON-Smallest-Fastest-Polymorphic-JSON-Seriali
MIT License
478 stars 148 forks source link

InvalidCastException when deserialize int[] contains negative integer #107

Closed zaevi closed 5 years ago

zaevi commented 5 years ago
JSON.ToObject<int[]>("[1,2,3]"); // ok
JSON.ToObject<int[]>("[1,2,-3]"); // throw InvalidCastException

It also happens with multi dimensional int arrays.

mgholam commented 5 years ago

Fixed in v2.2.6, thanks!