mgholam / fastJSON

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

fix bug of converting (object)long to string. #30

Closed Leogh closed 8 years ago

Leogh commented 8 years ago

When v is long, (string)v does not work.

mgholam commented 8 years ago

Do you have a test case for this?

Leogh commented 8 years ago

I double checked on www.json.org and found that I'm using the wrong type in my class. The type of v should be long, and it will be handled by the case myPropInfoType.Long. Please ignore and reject this patch.