flori/json — Issue #105: bignum with strings
Author: dancinglightning
Created: 2011-11-25 10:03:34+00:00
State: open

Hi
I just spent a long time debugging with the result that the javascript (using ruby object and to_json) was receiving numbers quoted.

I wasn't aware that some of the numbers come back as bignums from the database, but in ruby that doesn't matter off course.

So why should it matter in json, ie why is the bignum.to_json quotet when other numbers aren't.

Seems a bug to me, so that's why I put this.

PS: The rationale for the bignum from the gems designer is the precision, not the size. Ie the numbers that get quoted are in the 0-100 range.