There is a json which contain numbers with long fractional part:
json = <<-JSON
{
"number": 12.12345678910111213141516
}
JSON
But when making JSON.parse
numbers become truncated:
require 'json'
JSON.parse(json)
#=> {"number"=>12.123456789101112}
But for me it's pretty critical to have the whole number.
Is there any way to save fractional part and prevent it from truncating when parsing json?