Added JSON_PRESERVE_FRACTIONAL_PART option

I put the original code back when the option is not being used.
Optimized the original code when the option JSON_PRESERVE_FRACTIONAL_PART is disabled.